ΒΆllvm::Constant* ConstantFoldLoadFromUniformValue(
llvm::Constant* C,
llvm::Type* Ty)
llvm::Constant* ConstantFoldLoadFromUniformValue(
llvm::Constant* C,
llvm::Type* Ty)
Description
If C is a uniform value where all bits are the same (either all zero, all ones, all undef or all poison), return the corresponding uniform value in the new type. If the value is not uniform or the result cannot be represented, return null.
Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:171
Parameters
- llvm::Constant* C
- llvm::Type* Ty