Home
last modified time | relevance | path

Searched refs:CreateIntCast (Results 1 – 25 of 70) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp340 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
351 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
363 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
368 Ops[1] = Builder.CreateIntCast(CI->getArgOperand(1), in LowerIntrinsicCall()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp539 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
540 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
547 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
555 IRB.CreatePtrToInt(V, Ty) : IRB.CreateIntCast(V, Ty, false); in createIntOrPtrToIntCast()
616 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false), in instrumentAtomic()
DSanitizerCoverage.cpp471 Cond = IRB.CreateIntCast(Cond, Int64Ty, false); in InjectTraceForSwitch()
504 IRB.CreateIntCast(A0, Int64Ty, true), in InjectTraceForCmp()
505 IRB.CreateIntCast(A1, Int64Ty, true)}); in InjectTraceForCmp()
DMemorySanitizer.cpp675 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr()
1401 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitPtrToIntInst()
1408 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitIntToPtrInst()
1437 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitAnd()
1438 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitAnd()
1459 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitOr()
1460 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitOr()
1574 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
1577 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
1582 IRB.CreateIntCast(V1, Type::getIntNTy(*MS.C, dstSizeInBits), Signed); in CreateShadowCast()
[all …]
DEfficiencySanitizer.cpp716 IRB.CreateIntCast(MI->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
717 IRB.CreateIntCast(MI->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
725 IRB.CreateIntCast(MI->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
DAddressSanitizer.cpp902 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
907 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
908 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1131 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp()
2311 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp475 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
486 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
498 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
503 Ops[1] = Builder.CreateIntCast(CI->getArgOperand(1), in LowerIntrinsicCall()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp607 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
608 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
615 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
673 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false), in instrumentAtomic()
DSanitizerCoverage.cpp760 Cond = IRB.CreateIntCast(Cond, Int64Ty, false); in InjectTraceForSwitch()
798 {IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForDiv()
809 {IRB.CreateIntCast(*I, IntptrTy, true)}); in InjectTraceForGep()
842 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true), in InjectTraceForCmp()
843 IRB.CreateIntCast(A1, Ty, true)}); in InjectTraceForCmp()
DMemorySanitizer.cpp1085 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr()
1911 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitPtrToIntInst()
1918 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitIntToPtrInst()
1947 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitAnd()
1948 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitAnd()
1969 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitOr()
1970 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitOr()
2089 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
2092 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
2095 IRB.CreateIntCast(V1, Type::getIntNTy(*MS.C, dstSizeInBits), Signed); in CreateShadowCast()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/Utils/
DLocal.h83 Op = Builder->CreateIntCast(Op, IntIdxTy, true, Op->getName()+".c");
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp325 Res = Builder.CreateIntCast(I->getOperand(0), Ty, in ReduceExpressionDag()
367 Res = Builder.CreateIntCast(Res, DstTy, false); in ReduceExpressionDag()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAtomicOptimizer.cpp471 Mbcnt = B.CreateIntCast(Mbcnt, Ty, false); in optimizeAtomic()
525 Value *const Ctpop = B.CreateIntCast( in optimizeAtomic()
545 Value *const Ctpop = B.CreateIntCast( in optimizeAtomic()
/external/clang/lib/CodeGen/
DCGCUDANV.cpp141 Args[1] = CGF.Builder.CreateIntCast( in emitDeviceStubBody()
144 Args[2] = CGF.Builder.CreateIntCast( in emitDeviceStubBody()
DCGOpenMPRuntime.cpp2090 EnterArgs.push_back(CGF.Builder.CreateIntCast( in emitCriticalRegion()
2614 CGF.Builder.CreateIntCast(NumThreads, CGF.Int32Ty, /*isSigned*/ true)}; in emitNumThreadsClause()
4075 IfVal = CGF.Builder.CreateIntCast(CGF.EvaluateExprAsBool(IfCond), CGF.IntTy, in emitTaskLoopCall()
4111 ? CGF.Builder.CreateIntCast(Data.Schedule.getPointer(), CGF.Int64Ty, in emitTaskLoopCall()
4416 llvm::Value *Size = CGF.Builder.CreateIntCast( in emitReduction()
4894 return CGF.Builder.CreateIntCast(NumTeams, CGF.Int32Ty, in emitNumTeamsClauseForTargetDirective()
4943 return CGF.Builder.CreateIntCast(ThreadLimit, CGF.Int32Ty, in emitThreadLimitClauseForTargetDirective()
5040 CGF.Builder.CreateIntCast(LengthVal, CGF.SizeTy, /*isSigned=*/false); in getExprTypeSize()
5656 CGF.Builder.CreateIntCast(Sizes[i], CGM.SizeTy, /*isSigned=*/true), in emitOffloadingArrays()
5814 DeviceID = CGF.Builder.CreateIntCast(CGF.EmitScalarExpr(Device), in emitTargetCall()
[all …]
DCGExpr.cpp756 llvm::Value *IndexVal = Builder.CreateIntCast(Index, SizeTy, IndexSigned); in EmitBoundsCheck()
757 llvm::Value *BoundVal = Builder.CreateIntCast(Bound, SizeTy, false); in EmitBoundsCheck()
1510 Val = Builder.CreateIntCast(Val, ResLTy, Info.IsSigned, "bf.cast"); in EmitLoadOfBitfieldLValue()
1692 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue()
1743 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, in EmitStoreThroughBitfieldLValue()
2895 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr()
3052 Idx = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
3084 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr()
3090 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr()
3118 auto *LengthVal = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h234 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c");
/external/llvm/include/llvm/IR/
DConstantFolder.h169 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
DNoFolder.h222 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantFolder.h198 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
DNoFolder.h262 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetFolder.h176 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
/external/llvm/include/llvm/Analysis/
DTargetFolder.h174 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp848 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSet()
1503 V = B.CreateIntCast(V, B.getInt32Ty(), false); in optimizeFFS()
1715 return B.CreateIntCast(Len, CI->getType(), false); in optimizeSPrintFString()
1871 return B.CreateIntCast(Res, CI->getType(), true); in optimizePuts()
2236 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSetChk()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dsort_util.cc157 thread_id = b->CreateIntCast(thread_id, tiled_keys_index.GetType(), in EmitTiledCompareLoop()

123