[PATCH] D84587: [ConstantRange] Add API for intrinsics

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 25 07:56:49 PDT 2020


nikic created this revision.
nikic added reviewers: lebedev.ri, fhahn.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

This adds a common API for compute constant ranges of intrinsics. The intention here is that
a) we can reuse the same code across different passes that handle constant ranges, i.e. this can be reused in SCCP
b) we only have to add knowledge about supported intrinsics to ConstantRange, not any consumers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84587

Files:
  llvm/include/llvm/IR/ConstantRange.h
  llvm/lib/Analysis/LazyValueInfo.cpp
  llvm/lib/IR/ConstantRange.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84587.280680.patch
Type: text/x-patch
Size: 5060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200725/516c470b/attachment.bin>


More information about the llvm-commits mailing list