Details
Details
- Reviewers
pifon2a nicolasvasilache
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Why is this needed? DimOp always takes Value for the dimension index. There is no index attribute, which would allow to fold constants into the dimOp. With the current DimOp it is easier to call getValueOrCreateConstantIndexOp when DimOp::build is called.
Comment Actions
Right, getValueOrCreateConstantIndexOp works.
As there is a builder for int64_t, which creates a constant one for OpFoldResult would be the natural completion, no?