mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
ConstantInt has some getters which return ConstantInt's or ConstantVector's of
the value splatted into every element. Extend this to getTrue and getFalse which by providing new overloads that take Types that are either i1 or <N x i1>. Use it in InstCombine to add vector support to some code, fixing PR8469! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,6 +57,8 @@ protected:
|
||||
public:
|
||||
static ConstantInt *getTrue(LLVMContext &Context);
|
||||
static ConstantInt *getFalse(LLVMContext &Context);
|
||||
static Constant *getTrue(const Type *Ty);
|
||||
static Constant *getFalse(const Type *Ty);
|
||||
|
||||
/// If Ty is a vector type, return a Constant with a splat of the given
|
||||
/// value. Otherwise return a ConstantInt for the given value.
|
||||
|
||||
Reference in New Issue
Block a user