构建IR打印器,llvm风格,跑通大部分样例(9/10),待修复

This commit is contained in:
rain2133
2025-06-22 17:59:19 +08:00
parent 4711fb603b
commit 496e2abfb6
5 changed files with 520 additions and 16 deletions

View File

@@ -1106,7 +1106,7 @@ public:
return make_range(std::next(operand_begin()), operand_end());
}
Value* getIndex(int index) const { return getOperand(index + 1); }
std::list<Value *> getAncestorIndices() const {
std::list<Value *> getAncestorIndices() const {
std::list<Value *> indices;
for (const auto &index : getIndices()) {
indices.emplace_back(index->getValue());