Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm][Uniformity] provide overloads for Instruction* and Value*
Uniformity analysis is mainly concerned with the uniformity of values. But it is sometimes useful to ask if an instruction is uniform, for example, if the instruction is a terminator. On LLVM IR, every Instruction is a Value, so the queries like isUniform() need to be overloaded so that the most derived class always wins. Reviewed By: ruiling Differential Revision: https://reviews.llvm.org/D144699
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters