| /freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 218 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant() 222 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant() 240 return ConstantInt::getAllOnesValue(Tp); in getRandomValue() 244 return ConstantFP::getAllOnesValue(Tp); in getRandomValue() 412 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constant.h | 195 LLVM_ABI static Constant *getAllOnesValue(Type *Ty);
|
| H A D | IRBuilder.h | 869 return Constant::getAllOnesValue(VTy); in getAllOnesMask() 1738 return CreateSelect(Cond1, ConstantInt::getAllOnesValue(Cond2->getType()), 1811 return CreateXor(V, Constant::getAllOnesValue(V->getType()), Name); 2661 return CreateICmpSGT(Arg, ConstantInt::getAllOnesValue(Arg->getType()),
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 109 Rdx, ConstantInt::getAllOnesValue(Rdx->getType())); in expandReductions()
|
| H A D | ReplaceWithVeclib.cpp | 83 Constant::getAllOnesValue(MaskTy)); in replaceWithTLIFunction()
|
| H A D | ExpandMemCmp.cpp | 593 Builder.CreateSelect(Cmp, Constant::getAllOnesValue(Builder.getInt32Ty()), in emitMemCmpResultBlock()
|
| H A D | SelectOptimize.cpp | 505 CBO->setOperand(CondIdx, ConstantInt::getAllOnesValue(CBO->getType())); in getTrueOrFalseValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 75 return Constant::getAllOnesValue(DestTy); in FoldBitCast() 679 return Constant::getAllOnesValue(C1->getType()); // undef | X -> ~0 in ConstantFoldBinaryInstruction() 1115 return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction() 1144 return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
|
| H A D | Constants.cpp | 420 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue() function in Constant 426 APFloat FL = APFloat::getAllOnesValue(Ty->getFltSemantics()); in getAllOnesValue() 432 getAllOnesValue(VTy->getElementType())); in getAllOnesValue() 2625 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType())); in getNot() 2689 return Constant::getAllOnesValue(Ty); in getBinOpIdentity() 2725 return Constant::getAllOnesValue(Ty); in getIntrinsicIdentity() 2753 return Constant::getAllOnesValue(Ty); in getBinOpAbsorber()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 259 auto *ExtendedAllOnes = ConstantExpr::getAllOnesValue(ExtendedTy); in dropRedundantMaskingOfLeftShiftInput() 304 auto *ExtendedAllOnes = ConstantExpr::getAllOnesValue(ExtendedTy); in dropRedundantMaskingOfLeftShiftInput() 1234 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitShl() 1241 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitShl() 1608 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitLShr() 1615 Constant *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitLShr()
|
| H A D | InstCombineAndOrXor.cpp | 235 L12 = Constant::getAllOnesValue(L1->getType()); in getMaskedTypeForICmpPair() 240 L22 = Constant::getAllOnesValue(L2->getType()); in getMaskedTypeForICmpPair() 277 R12 = Constant::getAllOnesValue(R1->getType()); in getMaskedTypeForICmpPair() 300 R12 = Constant::getAllOnesValue(R2->getType()); in getMaskedTypeForICmpPair() 2867 simplifyAndOrWithOpReplaced(Op0, Op1, Constant::getAllOnesValue(Ty), in visitAnd() 2871 simplifyAndOrWithOpReplaced(Op1, Op0, Constant::getAllOnesValue(Ty), in visitAnd() 3444 Constant::getAllOnesValue(LHS0->getType())); in foldAndOrOfICmps() 4045 return SelectInst::Create(A, ConstantInt::getAllOnesValue(Ty), B); in visitOr() 4093 Value *AllOnes = ConstantInt::getAllOnesValue(Ty); in visitOr() 4193 return BinaryOperator::CreateLShr(Constant::getAllOnesValue(Ty), Sub); in visitOr() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 666 Constant *NegOne = ConstantInt::getAllOnesValue(Y->getType()); in foldPowiReassoc() 679 Constant *NegOne = ConstantInt::getAllOnesValue(Y->getType()); in foldPowiReassoc() 1709 Value *Cmp = Builder.CreateICmpEQ(Op0, ConstantInt::getAllOnesValue(Ty)); in visitUDiv() 1841 ConstantInt::getAllOnesValue(Ty)); in visitSDiv() 1885 ConstantInt::getAllOnesValue(Ty)); in visitSDiv() 2426 Constant *N1 = Constant::getAllOnesValue(Ty); in visitURem() 2458 Builder.CreateICmpEQ(FrozenOp0, ConstantInt::getAllOnesValue(Ty)); in visitURem()
|
| H A D | InstCombineCompares.cpp | 313 Value *Mask = Constant::getAllOnesValue(Idx->getType()); in foldCmpLoadFromIndexedGlobal() 1192 Value *Mask = Builder.CreateAdd(Y, Constant::getAllOnesValue(Y->getType())); in foldIRemByPowerOfTwoToBitTest() 1524 ConstantInt::getAllOnesValue(SrcTy)); in foldICmpTruncConstant() 1618 ConstantInt::getAllOnesValue(X->getType())); in foldICmpXorConstant() 2611 ConstantInt::getAllOnesValue(ShrTy)); in foldICmpShrConstant() 2702 ConstantInt::getAllOnesValue(Ty)); in foldICmpSRemConstant() 3441 ConstantInt::getAllOnesValue(X->getType())); in foldICmpBitCast() 3476 ConstantInt::getAllOnesValue(NewType)); in foldICmpBitCast() 3856 : Constant::getAllOnesValue(Ty)); in foldICmpEqIntrinsicWithConstant() 4230 ConstantInt::getAllOnesValue(Ty)); in foldICmpIntrinsicWithConstant() [all …]
|
| H A D | InstCombineAddSub.cpp | 1227 Constant *MinusOne = Constant::getAllOnesValue(NBits->getType()); in canonicalizeLowbitMask() 1711 Builder.CreateAdd(A, Constant::getAllOnesValue(A->getType()), "", in visitAdd() 1721 Constant *AllOnes = ConstantInt::getAllOnesValue(RHS->getType()); in visitAdd() 1738 return BinaryOperator::CreateAdd(NewMul, ConstantInt::getAllOnesValue(Ty)); in visitAdd() 1896 Value *Sub = Builder.CreateAdd(A, Constant::getAllOnesValue(A->getType())); in visitAdd() 2594 Op1, Builder.CreateAdd(X, Constant::getAllOnesValue(I.getType())))); in visitSub()
|
| H A D | InstCombineNegator.cpp | 414 Builder.CreateShl(Constant::getAllOnesValue(Op1C->getType()), Op1C), in visitImpl()
|
| H A D | InstCombineCasts.cpp | 1381 ConstantInt::getAllOnesValue(Sext.getType()) : in transformSExtICmp() 1398 ConstantInt::getAllOnesValue(In->getType()), in transformSExtICmp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 168 Cond, Constant::getAllOnesValue(Cond->getType()), Q, MaxRecurse)) in handleOtherCmpSelSimplifications() 624 return Constant::getAllOnesValue(Ty); in simplifyAddInst() 1212 return Constant::getAllOnesValue(Op0->getType()); in simplifySDivInst() 1486 return Constant::getAllOnesValue(Op0->getType()); in simplifyAShrInst() 1966 : ConstantInt::getAllOnesValue(Ty); in simplifyLogicOfAddSub() 2215 return ConstantInt::getAllOnesValue(Ty); in simplifyOrLogic() 2219 return ConstantInt::getAllOnesValue(Ty); in simplifyOrLogic() 2237 return ConstantInt::getAllOnesValue(Ty); in simplifyOrLogic() 2261 return ConstantInt::getAllOnesValue(Ty); in simplifyOrLogic() 2313 return Constant::getAllOnesValue(Op0->getType()); in simplifyOrInst() [all …]
|
| H A D | ConstantFolding.cpp | 786 return Constant::getAllOnesValue(Ty); in ConstantFoldLoadFromUniformValue() 3273 {Constant::getAllOnesValue(Ty->getStructElementType(0)), in ConstantFoldIntrinsicCall2() 3318 return Constant::getAllOnesValue(Ty); in ConstantFoldIntrinsicCall2()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 279 Value *VL = Constant::getAllOnesValue(XLenTy); in lowerDeinterleaveIntrinsicToLoad() 356 Value *VL = Constant::getAllOnesValue(XLenTy); in lowerInterleaveIntrinsicToStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 296 ConstantInt::getAllOnesValue(Ty) : ConstantFP::get(Ty, -1.0); in LowerNegateToMultiply() 1203 return Constant::getAllOnesValue(X->getType()); in OptimizeAndOrXor() 1557 return Constant::getAllOnesValue(X->getType()); in OptimizeAdd() 1571 Value *V = Constant::getAllOnesValue(X->getType()); in OptimizeAdd()
|
| H A D | LoopIdiomRecognize.cpp | 2952 Value *LowBitMask = Builder.CreateAdd(BitMask, Constant::getAllOnesValue(Ty), in recognizeShiftUntilBitTest() 2965 Builder.CreateAdd(XMaskedNumActiveBits, Constant::getAllOnesValue(Ty), in recognizeShiftUntilBitTest()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollRuntime.cpp | 783 B.CreateAdd(TripCount, Constant::getAllOnesValue(TripCount->getType())); in UnrollRuntimeLoopRemainder()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 818 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize() 960 llvm::Constant::getAllOnesValue(CGF.SizeTy), in EmitCXXNewAllocSize()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | X86.cpp | 200 return llvm::Constant::getAllOnesValue(Ty); // TRUE in EmitX86vpcom() 273 Cmp = Constant::getAllOnesValue( in EmitX86MaskedCompare() 2058 Value *C = llvm::Constant::getAllOnesValue(Ops[0]->getType()); in EmitX86BuiltinExpr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 498 SanCovLowestStack->setInitializer(Constant::getAllOnesValue(IntptrTy)); in instrumentModule()
|