llvm-project
d177a94f - [IR] Add Constant::toConstantRange() (NFC)

Commit
1 year ago
[IR] Add Constant::toConstantRange() (NFC) The logic in llvm::getVectorConstantRange() can be a bit inconvenient to use in some cases because of the need to handle the scalar case separately. Generalize it to handle all constants, and move it to live directly on Constant.
Author
Committer
Parents
Loading