Home
last modified time | relevance | path

Searched refs:getTrue (Results 1 – 25 of 102) sorted by relevance

12345

/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler()
113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface()
131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp125 static Constant *getTrue(Type *Ty) { return ConstantInt::getTrue(Ty); } in getTrue() function
2844 return getTrue(ITy); in simplifyICmpOfBools()
2869 return getTrue(ITy); in simplifyICmpOfBools()
2881 return getTrue(ITy); in simplifyICmpOfBools()
2892 return getTrue(ITy); in simplifyICmpOfBools()
2896 return getTrue(ITy); in simplifyICmpOfBools()
2916 return getTrue(ITy); in simplifyICmpWithZero()
2925 return getTrue(ITy); in simplifyICmpWithZero()
2930 return getTrue(ITy); in simplifyICmpWithZero()
2938 return getTrue(ITy); in simplifyICmpWithZero()
[all …]
H A DGuardUtils.cpp53 Condition = ConstantInt::getTrue(IfTrueBB->getContext()); in parseWidenableBranch()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DSSAUpdaterBulkTest.cpp53 B.CreateCondBr(B.getTrue(), TrueBB, FalseBB); in TEST()
141 B.CreateCondBr(B.getTrue(), LoopMainBB, LoopStartBB); in TEST()
149 B.CreateCondBr(B.getTrue(), LoopStartBB, AfterLoopBB); in TEST()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DMemorySSATest.cpp87 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
125 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
215 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
259 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
311 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
347 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
393 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
437 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
490 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
535 B.CreateCondBr(B.getTrue(), Left, Right); in TEST_F()
[all …]
H A DDomTreeUpdaterTest.cpp273 BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0); in TEST()
371 BranchInst::Create(BB1, BB3, ConstantInt::getTrue(F->getContext()), BB0); in TEST()
490 BranchInst::Create(BB1, BB2, ConstantInt::getTrue(F->getContext()), BB0); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerWidenableCondition.cpp62 CI->replaceAllUsesWith(ConstantInt::getTrue(CI->getContext())); in lowerWidenableCondition()
H A DLowerConstantIntrinsics.cpp48 return ConstantInt::getTrue(II->getType()); in lowerIsConstantIntrinsic()
H A DPartiallyInlineLibCalls.cpp62 Builder.getTrue(), Call->getNextNode(), /*Unreachable=*/false, in optimizeSQRT()
H A DEarlyCSE.cpp1067 ? ConstantInt::getTrue(BB->getContext()) in handleBranchCondition()
1264 AvailableValues.insert(CondI, ConstantInt::getTrue(BB->getContext())); in processNode()
1337 AvailableValues.insert(CondI, ConstantInt::getTrue(BB->getContext())); in processNode()
H A DLoopBoundSplit.cpp419 SplitCandidateCond.BI->setCondition(ConstantInt::getTrue(Context)); in splitLoopBound()
H A DLoopPredication.cpp416 return Builder.getTrue(); in expandCheck()
1149 WC->set(ConstantInt::getTrue(IfTrueBB->getContext())); in predicateLoopExits()
H A DCorrelatedValuePropagation.cpp536 II->setArgOperand(1, ConstantInt::getTrue(II->getContext())); in processAbsIntrinsic()
1074 ConstantInt::getTrue(C->getContext()) : in getConstantAt()
H A DJumpThreading.cpp746 InterestingVal = ConstantInt::getTrue(I->getContext()); in computeValueKnownInPredecessorsImpl()
912 ResC = ConstantInt::getTrue(CmpType); in computeValueKnownInPredecessorsImpl()
1159 ConstantInt::getTrue(CondCmp->getType()) : in processBlock()
1889 SplitVal = ConstantInt::getTrue(BB->getContext()); in processBranchOnXOR()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueLattice.h469 ? ConstantInt::getTrue(Ty) : ConstantInt::getFalse(Ty); in getCompare()
480 return ConstantInt::getTrue(Ty); in getCompare()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSampleProfileLoaderBaseUtil.cpp184 ConstantInt::getTrue(Context), in createFSDiscriminatorVariable()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp63 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp333 return replaceInstUsesWith(ICI, Builder.getTrue()); in foldCmpLoadFromIndexedGlobal()
1510 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpWithDominatingICmp()
2650 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
2662 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
2671 return replaceInstUsesWith(Cmp, Builder.getTrue()); in foldICmpDivConstant()
5062 Overflow = ConstantInt::getTrue(OverflowTy); in OptimizeOverflowCheck()
6412 return replaceInstUsesWith(I, Builder.getTrue()); in foldFCmpIntToFPConst()
6478 return replaceInstUsesWith(I, Builder.getTrue()); in foldFCmpIntToFPConst()
6498 return replaceInstUsesWith(I, Builder.getTrue()); in foldFCmpIntToFPConst()
6510 return replaceInstUsesWith(I, Builder.getTrue()); in foldFCmpIntToFPConst()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp218 ConstantInt *BoolTrue = ConstantInt::getTrue(F.getContext()); in runOnFunction()
H A DSIAnnotateControlFlow.cpp132 BoolTrue = ConstantInt::getTrue(Context); in initialize()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DCodeGeneration.cpp221 std::get<0>(executeScopConditionally(S, Builder.getTrue(), DT, RI, LI)); in generateCode()
H A DIslExprBuilder.cpp619 auto BR = Builder.CreateCondBr(Builder.getTrue(), NextBB, CondBB); in createOpBooleanConditional()
645 : Builder.getTrue(), in createOpBooleanConditional()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp1803 ConstantInt::getTrue(F.getContext())); in createMergedBranch()
1816 Value *MergedCondition = ConstantInt::getTrue(F.getContext()); in fixupBranchesAndSelects()
1891 ConstantInt::getTrue(F.getContext()) : in fixupBranch()
1916 ConstantInt::getTrue(F.getContext()) : in fixupSelect()
1933 Cond = IRB.CreateXor(ConstantInt::getTrue(F.getContext()), Cond); in addToMergedCondition()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h91 static ConstantInt *getTrue(LLVMContext &Context);
94 static Constant *getTrue(Type *Ty);
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp256 Value *TrueValue = ConstantInt::getTrue(F.getContext()); in lowerIncomingArguments()

12345