This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Use `getConstantIntValue` instead of casting to `ConstantIndexOp`
ClosedPublic

Authored by springerm on Jul 3 2023, 8:26 AM.

Details

Summary

getConstantIntValue extracts constant values from all constant-like ops, not just arith::ConstantIndexOp.

Depends On: D154343

Diff Detail

Event Timeline

springerm created this revision.Jul 3 2023, 8:26 AM
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jul 3 2023, 8:26 AM
nicolasvasilache accepted this revision.Jul 4 2023, 4:36 AM
This revision is now accepted and ready to land.Jul 4 2023, 4:36 AM