Home
last modified time | relevance | path

Searched refs:getBool (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h109 cir::ConstantOp getBool(bool state, mlir::Location loc) { in getBool() function
112 cir::ConstantOp getFalse(mlir::Location loc) { return getBool(false, loc); } in getFalse()
113 cir::ConstantOp getTrue(mlir::Location loc) { return getBool(true, loc); } in getTrue()
341 return createSelect(loc, lhs, rhs, getBool(false, loc)); in createLogicalAnd()
346 return createSelect(loc, lhs, getBool(true, loc), rhs); in createLogicalOr()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp32 ConstantInt *ConstantInt::getBool(Context &Ctx, bool V) { in getBool() function in llvm::sandboxir::ConstantInt
33 auto *LLVMC = llvm::ConstantInt::getBool(Ctx.LLVMCtx, V); in getBool()
44 Constant *ConstantInt::getBool(Type *Ty, bool V) { in getBool() function in llvm::sandboxir::ConstantInt
45 auto *LLVMC = llvm::ConstantInt::getBool(Ty->LLVMTy, V); in getBool()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h93 bool &getBool() { in getBool() function
113 bool getBool() const { in getBool() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DLowerAllowCheckPass.cpp144 I->replaceAllUsesWith(ConstantInt::getBool(I->getType(), !V)); in removeUbsanTraps()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp173 SimplifiedValues[&I] = ConstantInt::getBool(I.getType(), Res); in visitCmpInst()
H A DInstructionSimplify.cpp1835 : ConstantInt::getBool(LHS->getType(), !IsAnd); in simplifyAndOrOfFCmps()
1850 : ConstantInt::getBool(LHS->getType(), !IsAnd); in simplifyAndOrOfFCmps()
2999 return ConstantInt::getBool(ITy, !TrueIfSigned); in simplifyICmpWithConstant()
3102 return ConstantInt::getBool(getCompareTy(LHS), in simplifyICmpUsingMonotonicValues()
4026 return ConstantInt::getBool(ITy, *Res); in simplifyICmpInst()
H A DInlineCost.cpp2220 SimplifiedValues[&I] = ConstantInt::getBool( in visitCmpInst()
H A DConstantFolding.cpp1285 return ConstantInt::getBool( in ConstantFoldCompareInstOperands()
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackDocumentYAML.cpp89 StringRef Err = yaml::ScalarTraits<bool>::input(S, nullptr, getBool()); in fromString()
H A DMsgPackDocument.cpp282 MPWriter.write(Node.getBool()); in writeToBlob()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h108 LLVM_ABI static ConstantInt *getBool(LLVMContext &Context, bool V);
111 LLVM_ABI static Constant *getBool(Type *Ty, bool V);
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h81 LLVM_ABI static ConstantInt *getBool(Context &Ctx, bool V);
84 LLVM_ABI static Constant *getBool(Type *Ty, bool V);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUPALMetadata.cpp1099 return N->getBool() == Val; in checkComputeRegisters()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp1465 Constant *ConstantC = ConstantInt::getBool( in checkAndReplaceCondition()
1645 ConstantInt::getBool(JoinOp->getType(), *ImpliedCondition)); in checkOrAndOpImpliedByOther()
H A DLoopIdiomRecognize.cpp2211 ConstantInt::getBool(InitX->getContext(), ZeroCheck)}; in isProfitableToInsertFFS()
H A DNewGVN.cpp1975 auto *C = ConstantInt::getBool(CI->getType(), *R); in performSymbolicCmpEvaluation()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprScalar.cpp178 return builder.getBool(e->getValue(), cgf.getLoc(e->getExprLoc())); in VisitCXXBoolLiteralExpr()
896 result = builder.getBool(false, loc); in HANDLEBINOP()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp882 ConstantInt *ConstantInt::getBool(LLVMContext &Context, bool V) { in getBool() function in ConstantInt
902 Constant *ConstantInt::getBool(Type *Ty, bool V) { in getBool() function in ConstantInt
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp5694 return replaceInstUsesWith(I, ConstantInt::getBool(I.getType(), *CmpYZ)); in foldICmpWithMinMax()
5734 I, ConstantInt::getBool(I.getType(), Pred == ICmpInst::ICMP_NE)); in foldICmpWithMinMax()
6876 return replaceInstUsesWith(I, ConstantInt::getBool(I.getType(), *Res)); in foldICmpUsingKnownBits()
7093 I, ConstantInt::getBool(I.getType(), Pred1 == ICmpInst::ICMP_NE)); in foldICmpUsingBoolRange()
7108 I, ConstantInt::getBool(I.getType(), Pred1 == ICmpInst::ICMP_NE)); in foldICmpUsingBoolRange()
H A DInstCombineMulDivRem.cpp543 Intrinsic::abs, X, ConstantInt::getBool(I.getContext(), HasNSW)); in visitMul()
H A DInstCombineCalls.cpp2125 ConstantInt::getBool(II->getContext(), IntMinIsPoison)); in visitCallInst()
H A DInstructionCombining.cpp1815 return ConstantInt::getBool(I.getType(), ImpliedCond.value()); in simplifyInstructionWithPHI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp971 ConstantInt::getBool(GV->getContext(), !isa<ConstantPointerNull>( in OptimizeGlobalAddressOfAllocation()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp275 ICmp->replaceAllUsesWith(ConstantInt::getBool(ICmp->getContext(), *Ev)); in eliminateIVComparison()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp3252 llvm::ConstantInt::getBool(CondTy, LH == Stmt::LH_Likely); in emitCondLikelihoodViaExpectIntrinsic()

12