[midend-mem2reg]mem2reg遍基本写完,编译不报错,待reg2mem写完统一测试

This commit is contained in:
rain2133
2025-07-28 14:28:46 +08:00
parent a616ec085e
commit efe74cba6c
3 changed files with 505 additions and 1 deletions

View File

@@ -1112,7 +1112,10 @@ protected:
}
public:
//! 获取分配的类型
Type* getAllocatedType() const {
return getType()->as<PointerType>()->getBaseType();
} ///< 获取分配的类型
int getNumDims() const { return getNumOperands(); }
auto getDims() const { return getOperands(); }
Value* getDim(int index) { return getOperand(index); }