| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 68 Result = B.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize"); in Convert() 79 Result = B.CreateIntCast(Result, UpscaledTy, SrcIsSigned, "resize"); in Convert() 105 Result = B.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize"); in Convert() 344 RHS = B.CreateIntCast(RHS, LHS->getType(), /*IsSigned=*/false); in CreateShl() 363 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
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | RuntimeDebugBuilder.cpp | 72 Id = Builder.CreateIntCast(Id, Builder.getInt64Ty(), false); in getGPUThreadIdentifiers() 88 Id = Builder.CreateIntCast(Id, Builder.getInt64Ty(), false); in getGPUThreadIdentifiers()
|
| H A D | IslExprBuilder.cpp | 303 NextIndex = Builder.CreateIntCast(NextIndex, Ty, true); in createAccessAddress() 305 IndexOp = Builder.CreateIntCast(IndexOp, Ty, true); in createAccessAddress()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/ |
| H A D | Local.h | 82 Op = Builder->CreateIntCast(Op, IntIdxTy, true, Op->getName().str()+".c");
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 811 Cond = IRB.CreateIntCast(Cond, Int64Ty, false); in InjectTraceForSwitch() 849 {IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForDiv() 860 {IRB.CreateIntCast(Idx, IntptrTy, true)}); in InjectTraceForGep() 926 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true), in InjectTraceForCmp() 927 IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForCmp()
|
| H A D | MemProfiler.cpp | 317 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 322 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 323 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
| H A D | ThreadSanitizer.cpp | 705 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 706 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 713 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 773 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false), in instrumentAtomic()
|
| H A D | MemorySanitizer.cpp | 1113 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr() 2065 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitAnd() 2066 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitAnd() 2087 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitOr() 2088 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitOr() 2207 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast() 2211 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast() 2544 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemMoveInst() 2559 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemCpyInst() 2569 IRB.CreateIntCast(I.getArgOperand(1), IRB.getInt32Ty(), false), in visitMemSetInst() [all …]
|
| H A D | HWAddressSanitizer.cpp | 937 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 942 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 943 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
| H A D | AddressSanitizer.cpp | 1206 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 1211 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 1212 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 1537 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp() 3383 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 2214 EnterArgs.push_back(CGF.Builder.CreateIntCast( in emitCriticalRegion() 5520 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitReduction() 6703 return Bld.CreateIntCast(NumTeamsVal, CGF.Int32Ty, in emitNumTeamsForTargetDirective() 6714 return Bld.CreateIntCast(NumTeamsVal, CGF.Int32Ty, in emitNumTeamsForTargetDirective() 8225 DimSizes.push_back(CGF.Builder.CreateIntCast( in generateInfoForComponentList() 8249 llvm::Value *Offset = CGF.Builder.CreateIntCast( in generateInfoForComponentList() 8985 CombinedInfo.Sizes.push_back(CGF.Builder.CreateIntCast( in generateInfoForLambdaCaptures() 9058 CombinedInfo.Sizes.push_back(CGF.Builder.CreateIntCast( in generateInfoForCapture() 9297 CombinedInfo.Sizes.push_back(CGF.Builder.CreateIntCast( in generateDefaultMapInfo() 9312 CombinedInfo.Sizes.push_back(CGF.Builder.CreateIntCast( in generateDefaultMapInfo() [all …]
|
| H A D | CGExprScalar.cpp | 999 Check = Builder.CreateIntCast(Dst, SrcTy, DstSigned, "anyext"); in EmitIntegerTruncationCheckHelper() 1232 return Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in EmitScalarCast() 1364 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in EmitScalarConversion() 1418 return Builder.CreateIntCast(Src, DstTy, false, "conv"); in EmitScalarConversion() 1724 Res = Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in VisitConvertVectorExpr() 2299 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in VisitCastExpr() 2898 Idx = Builder.CreateIntCast(Idx, ResultType, IdxSigned, "conv"); in VisitOffsetOfExpr() 3489 index = CGF.Builder.CreateIntCast(index, DL.getIndexType(PtrTy), isSigned, in emitPointerArithmetic() 3927 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShl() 4005 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShr() [all …]
|
| H A D | CGExpr.cpp | 1015 llvm::Value *IndexVal = Builder.CreateIntCast(Index, SizeTy, IndexSigned); in EmitBoundsCheck() 1016 llvm::Value *BoundVal = Builder.CreateIntCast(Bound, SizeTy, false); in EmitBoundsCheck() 2050 Val = Builder.CreateIntCast(Val, ResLTy, Info.IsSigned, "bf.cast"); in EmitLoadOfBitfieldLValue() 2262 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue() 2324 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, in EmitStoreThroughBitfieldLValue() 3819 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr() 4027 Idx = Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4061 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4067 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr() 4097 auto *LengthVal = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 1568 IfCondVal = Bld.CreateIntCast(CGF.EvaluateExprAsBool(IfCond), CGF.Int32Ty, in emitParallelCall() 1716 return CGF.Builder.CreateIntCast(Val, LLVMCastTy, in castValueToType() 1756 Bld.CreateIntCast(RT.getGPUWarpSize(CGF), CGM.Int16Ty, /*isSigned=*/true); in createRuntimeShuffleFunction() 2734 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitListToGlobalReduceFunction() 2944 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitGlobalToListReduceFunction() 3266 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitReduction()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 456 Size = Builder.CreateIntCast(Size, in emitAlloc()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 1528 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSet() 2560 V = B.CreateIntCast(V, B.getInt32Ty(), false); in optimizeFFS() 2575 return B.CreateIntCast(V, CI->getType(), false); in optimizeFls() 2853 return B.CreateIntCast(PtrDiff, CI->getType(), false); in optimizeSPrintFString() 2870 return B.CreateIntCast(Len, CI->getType(), false); in optimizeSPrintFString() 3633 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSetChk()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 1010 In = Builder.CreateIntCast(In, Zext.getType(), false /*ZExt*/); in transformZExtICmp() 1056 Value *IntCast = Builder.CreateIntCast(In, Zext.getType(), false); in transformZExtICmp() 1379 In = Builder.CreateIntCast(In, CI.getType(), true /*SExt*/); in transformSExtICmp() 2101 Builder.CreateIntCast(EmitGEPOffset(GEP), Ty, in visitPtrToInt()
|