| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 70 Result = B.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize"); in Convert() 81 Result = B.CreateIntCast(Result, UpscaledTy, SrcIsSigned, "resize"); in Convert() 107 Result = B.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize"); in Convert() 346 RHS = B.CreateIntCast(RHS, LHS->getType(), /*IsSigned=*/false); in CreateShl() 365 RHS = B.CreateIntCast(RHS, LHS->getType(), false); in CreateShr()
|
| H A D | IRBuilderFolder.h | 82 virtual Value *CreateIntCast(Constant *C, Type *DestTy,
|
| H A D | NoFolder.h | 128 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
|
| H A D | ConstantFolder.h | 191 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 338 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 349 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 361 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 366 Ops[1] = Builder.CreateIntCast(CI->getArgOperand(1), in LowerIntrinsicCall()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | InstSimplifyFolder.h | 125 Value *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function 129 return ConstFolder.CreateIntCast(C, DestTy, isSigned); in CreateIntCast()
|
| H A D | TargetFolder.h | 194 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | Local.cpp | 75 Op = Builder->CreateIntCast(Op, IntIdxTy, true, Op->getName() + ".c"); in emitGEPOffset()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfiler.cpp | 259 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 264 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 265 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
| H A D | ThreadSanitizer.cpp | 697 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 698 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 705 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 765 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false), in instrumentAtomic()
|
| H A D | SanitizerCoverage.cpp | 840 Cond = IRB.CreateIntCast(Cond, Int64Ty, false); in InjectTraceForSwitch() 878 {IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForDiv() 889 {IRB.CreateIntCast(Idx, IntptrTy, true)}); in InjectTraceForGep() 955 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true), in InjectTraceForCmp() 956 IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForCmp()
|
| H A D | MemorySanitizer.cpp | 1175 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr() 2257 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitPtrToIntInst() 2264 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitIntToPtrInst() 2293 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitAnd() 2294 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitAnd() 2315 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitOr() 2316 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitOr() 2435 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast() 2439 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast() 2442 IRB.CreateIntCast(V1, Type::getIntNTy(*MS.C, dstSizeInBits), Signed); in CreateShadowCast() [all …]
|
| H A D | DataFlowSanitizer.cpp | 2458 Origin = IRB.CreateIntCast(Origin, DFS.IntptrTy, /* isSigned */ false); in originToIntptr() 2927 IRB.CreateIntCast(I.getArgOperand(2), DFSF.DFS.IntptrTy, false)}); in visitMemTransferInst() 3220 NextIRB.CreateIntCast(Size, DFSF.DFS.IntptrTy, false)}); in visitLibAtomicLoad() 3259 IRB.CreateIntCast(Size, DFSF.DFS.IntptrTy, false)}); in visitLibAtomicStore() 3280 IRB.CreateIntCast(Size, DFSF.DFS.IntptrTy, false)}); in visitLibAtomicExchange() 3286 IRB.CreateIntCast(Size, DFSF.DFS.IntptrTy, false)}); in visitLibAtomicExchange() 3311 {NextIRB.CreateIntCast(&CB, NextIRB.getInt8Ty(), false), in visitLibAtomicCompareExchange() 3315 NextIRB.CreateIntCast(Size, DFSF.DFS.IntptrTy, false)}); in visitLibAtomicCompareExchange()
|
| H A D | HWAddressSanitizer.cpp | 950 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 955 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 956 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
| H A D | AddressSanitizer.cpp | 1236 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 1241 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 1242 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 1568 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp() 3437 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 1982 CGF.Builder.CreateIntCast(CGF.getTypeSize(VarType), CGM.SizeTy, in getAddrOfArtificialThreadPrivate() 2191 EnterArgs.push_back(CGF.Builder.CreateIntCast( in emitCriticalRegion() 2886 CGF.Builder.CreateIntCast(NumThreads, CGF.Int32Ty, /*isSigned*/ true)}; in emitNumThreadsClause() 3951 DeviceID = CGF.Builder.CreateIntCast(CGF.EmitScalarExpr(Device), in emitTaskInit() 3977 Tid = CGF.Builder.CreateIntCast(Tid, CGF.IntTy, /*isSigned=*/false); in emitTaskInit() 3999 Sz = CGF.Builder.CreateIntCast(Sz, CGF.SizeTy, /*isSigned=*/false); in emitTaskInit() 4029 NumOfElements = CGF.Builder.CreateIntCast(NumOfElements, CGF.Int32Ty, in emitTaskInit() 4396 CGF.Builder.CreateIntCast(NumDeps, CGF.SizeTy, /*isSigned=*/false)); in emitDepobjElements() 4452 Sz = CGF.Builder.CreateIntCast(Sz, CGF.IntPtrTy, /*isSigned=*/false); in emitDependClause() 4489 NumOfElements = CGF.Builder.CreateIntCast(NumOfElements, CGF.Int32Ty, in emitDependClause() [all …]
|
| H A D | CGExprScalar.cpp | 1028 Check = Builder.CreateIntCast(Dst, SrcTy, DstSigned, "anyext"); in EmitIntegerTruncationCheckHelper() 1261 return Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in EmitScalarCast() 1393 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in EmitScalarConversion() 1447 return Builder.CreateIntCast(Src, DstTy, false, "conv"); in EmitScalarConversion() 1746 Res = Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in VisitConvertVectorExpr() 2322 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in VisitCastExpr() 2956 Idx = Builder.CreateIntCast(Idx, ResultType, IdxSigned, "conv"); in VisitOffsetOfExpr() 3660 index = CGF.Builder.CreateIntCast(index, DL.getIndexType(PtrTy), isSigned, in emitPointerArithmetic() 4098 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShl() 4176 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShr() [all …]
|
| H A D | CGExpr.cpp | 973 llvm::Value *IndexVal = Builder.CreateIntCast(Index, SizeTy, IndexSigned); in EmitBoundsCheck() 974 llvm::Value *BoundVal = Builder.CreateIntCast(Bound, SizeTy, false); in EmitBoundsCheck() 2007 Val = Builder.CreateIntCast(Val, ResLTy, Info.IsSigned, "bf.cast"); in EmitLoadOfBitfieldLValue() 2219 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue() 2281 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, in EmitStoreThroughBitfieldLValue() 3794 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr() 4002 Idx = Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4037 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4043 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4073 auto *LengthVal = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 1216 IfCondVal = Bld.CreateIntCast(CGF.EvaluateExprAsBool(IfCond), CGF.Int32Ty, in emitParallelCall() 1364 return CGF.Builder.CreateIntCast(Val, LLVMCastTy, in castValueToType() 1404 Bld.CreateIntCast(RT.getGPUWarpSize(CGF), CGM.Int16Ty, /*isSigned=*/true); in createRuntimeShuffleFunction() 2382 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitListToGlobalReduceFunction() 2592 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitGlobalToListReduceFunction() 2914 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitReduction()
|
| H A D | CGStmtOpenMP.cpp | 3157 CGF.Builder.CreateIntCast(CGF.Builder.CreateLoad(LB.getAddress(CGF)), in emitDistributeParallelForDistributeInnerBoundParams() 3164 CGF.Builder.CreateIntCast(CGF.Builder.CreateLoad(UB.getAddress(CGF)), in emitDistributeParallelForDistributeInnerBoundParams() 3542 llvm::Value *OMPScanNumIterations = CGF.Builder.CreateIntCast( in emitScanBasedDirectiveDecls() 3594 llvm::Value *OMPScanNumIterations = CGF.Builder.CreateIntCast( in emitScanBasedDirectiveFinals() 3661 llvm::Value *OMPScanNumIterations = CGF.Builder.CreateIntCast( in emitScanBasedDirective() 4362 Builder.CreateIntCast(EmitScalarExpr(Hint), CGM.Int32Ty, false); in EmitOMPCriticalDirective() 5496 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective() 5528 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective() 6151 UpdateVal = CGF.Builder.CreateIntCast( in emitOMPAtomicRMW() 6401 EVal = CGF.Builder.CreateIntCast( in emitOMPAtomicCompareExpr() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAtomicOptimizer.cpp | 522 Mbcnt = B.CreateIntCast(Mbcnt, Ty, false); in optimizeAtomic() 570 Value *const Ctpop = B.CreateIntCast( in optimizeAtomic() 590 Value *const Ctpop = B.CreateIntCast( in optimizeAtomic()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 408 Res = Builder.CreateIntCast(I->getOperand(0), Ty, in ReduceExpressionGraph() 493 Res = Builder.CreateIntCast(Res, DstTy, false); in ReduceExpressionGraph()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 1643 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSet() 2676 V = B.CreateIntCast(V, RetType, false); in optimizeFFS() 2692 return B.CreateIntCast(V, CI->getType(), false); in optimizeFls() 2874 Value *IntChar = B.CreateIntCast(CI->getArgOperand(1), IntTy, false); in optimizePrintFString() 2988 return B.CreateIntCast(PtrDiff, CI->getType(), false); in optimizeSPrintFString() 3005 return B.CreateIntCast(Len, CI->getType(), false); in optimizeSPrintFString() 3221 Value *V = B.CreateIntCast(CI->getArgOperand(2), IntTy, /*isSigned*/ true, in optimizeFPrintFString() 3291 Value *Cast = B.CreateIntCast(Char, IntTy, /*isSigned*/ true, "chari"); in optimizeFWrite() 3819 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSetChk()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 462 Size = Builder.CreateIntCast(Size, in emitAlloc()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 1040 In = Builder.CreateIntCast(In, Zext.getType(), false /*ZExt*/); in transformZExtICmp() 1077 Value *IntCast = Builder.CreateIntCast(In, Zext.getType(), false); in transformZExtICmp() 1377 In = Builder.CreateIntCast(In, Sext.getType(), true /*SExt*/); in transformSExtICmp() 2100 Builder.CreateIntCast(EmitGEPOffset(GEP), Ty, in visitPtrToInt()
|