[all-commits] [llvm/llvm-project] 897bdc: [ConstantRange] Add API for intrinsics (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 29 13:16:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 897bdca4b81dff200714a5b1cb22b20e9c4c4594
      https://github.com/llvm/llvm-project/commit/897bdca4b81dff200714a5b1cb22b20e9c4c4594
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M llvm/include/llvm/IR/ConstantRange.h
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/lib/IR/ConstantRange.cpp

  Log Message:
  -----------
  [ConstantRange] Add API for intrinsics (NFC)

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.

Differential Revision: https://reviews.llvm.org/D84587




More information about the All-commits mailing list