Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp485 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
486 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
493 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
533 IRB.CreateIntCast(SI->getValueOperand(), Ty, false), in instrumentAtomic()
550 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false), in instrumentAtomic()
564 IRB.CreateIntCast(CASI->getCompareOperand(), Ty, false), in instrumentAtomic()
565 IRB.CreateIntCast(CASI->getNewValOperand(), Ty, false), in instrumentAtomic()
DSanitizerCoverage.cpp393 Cond = IRB.CreateIntCast(Cond, Int64Ty, false); in InjectTraceForSwitch()
426 IRB.CreateIntCast(A0, Int64Ty, true), in InjectTraceForCmp()
427 IRB.CreateIntCast(A1, Int64Ty, true)}); in InjectTraceForCmp()
DMemorySanitizer.cpp654 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr()
1380 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitPtrToIntInst()
1387 setShadow(&I, IRB.CreateIntCast(getShadow(&I, 0), getShadowTy(&I), false, in visitIntToPtrInst()
1416 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitAnd()
1417 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitAnd()
1438 V1 = IRB.CreateIntCast(V1, S1->getType(), false); in visitOr()
1439 V2 = IRB.CreateIntCast(V2, S2->getType(), false); in visitOr()
1553 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
1556 return IRB.CreateIntCast(V, dstTy, Signed); in CreateShadowCast()
1561 IRB.CreateIntCast(V1, Type::getIntNTy(*MS.C, dstSizeInBits), Signed); in CreateShadowCast()
[all …]
DAddressSanitizer.cpp840 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
845 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
846 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1061 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp()
2103 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
DSafeStack.cpp608 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack()
/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/clang/lib/CodeGen/
DCGCUDANV.cpp139 Args[1] = CGF.Builder.CreateIntCast( in emitDeviceStubBody()
142 Args[2] = CGF.Builder.CreateIntCast( in emitDeviceStubBody()
DCGExpr.cpp731 llvm::Value *IndexVal = Builder.CreateIntCast(Index, SizeTy, IndexSigned); in EmitBoundsCheck()
732 llvm::Value *BoundVal = Builder.CreateIntCast(Bound, SizeTy, false); in EmitBoundsCheck()
1485 Val = Builder.CreateIntCast(Val, ResLTy, Info.IsSigned, "bf.cast"); in EmitLoadOfBitfieldLValue()
1667 SrcVal = Builder.CreateIntCast(SrcVal, Ptr.getElementType(), in EmitStoreThroughBitfieldLValue()
1718 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned, in EmitStoreThroughBitfieldLValue()
2726 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr()
2850 Idx = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
2882 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr()
2888 ? Builder.CreateIntCast( in EmitOMPArraySectionExpr()
2913 auto *LengthVal = Builder.CreateIntCast( in EmitOMPArraySectionExpr()
DCGExprScalar.cpp801 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in EmitScalarConversion()
861 Res = Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in EmitScalarConversion()
1106 Res = Builder.CreateIntCast(Src, DstTy, InputSigned, "conv"); in VisitConvertVectorExpr()
1530 Builder.CreateIntCast(Src, MiddleTy, InputSigned, "conv"); in VisitCastExpr()
1935 Idx = Builder.CreateIntCast(Idx, ResultType, IdxSigned, "conv"); in VisitOffsetOfExpr()
2449 index = CGF.Builder.CreateIntCast(index, CGF.PtrDiffTy, isSigned, in emitPointerArithmetic()
2719 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShl()
2783 RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom"); in EmitShr()
DCGOpenMPRuntime.cpp1404 CGF.Builder.CreateIntCast(HintVal, CGM.IntPtrTy, /*isSigned=*/false)); in emitCriticalRegion()
1909 CGF.Builder.CreateIntCast(NumThreads, CGF.Int32Ty, /*isSigned*/ true)}; in emitNumThreadsClause()
2913 CGF.Builder.CreateIntCast( in emitReduction()
3468 CGF.Builder.CreateStore(CGF.Builder.CreateIntCast( in emitTargetCall()
3514 DeviceID = CGF.Builder.CreateIntCast(CGF.EmitScalarExpr(Device), in emitTargetCall()
DCGBuiltin.cpp528 Result = Builder.CreateIntCast(Result, ResultType, /*isSigned*/true, in EmitBuiltinExpr()
545 Result = Builder.CreateIntCast(Result, ResultType, /*isSigned*/true, in EmitBuiltinExpr()
566 Result = Builder.CreateIntCast(Result, ResultType, /*isSigned*/true, in EmitBuiltinExpr()
583 Result = Builder.CreateIntCast(Result, ResultType, /*isSigned*/true, in EmitBuiltinExpr()
598 Result = Builder.CreateIntCast(Result, ResultType, /*isSigned*/true, in EmitBuiltinExpr()
1367 Order = Builder.CreateIntCast(Order, Builder.getInt32Ty(), false); in EmitBuiltinExpr()
1432 Order = Builder.CreateIntCast(Order, Builder.getInt32Ty(), false); in EmitBuiltinExpr()
1491 Order = Builder.CreateIntCast(Order, Builder.getInt32Ty(), false); in EmitBuiltinExpr()
1704 Left = Builder.CreateIntCast(Left, EncompassingLLVMTy, LeftInfo.Signed); in EmitBuiltinExpr()
1705 Right = Builder.CreateIntCast(Right, EncompassingLLVMTy, RightInfo.Signed); in EmitBuiltinExpr()
[all …]
DCGAtomic.cpp1102 Order = Builder.CreateIntCast(Order, Builder.getInt32Ty(), false); in EmitAtomicExpr()
1788 intValue = Builder.CreateIntCast( in EmitAtomicStore()
DCGException.cpp1696 R = Builder.CreateIntCast(R, ConvertType(getContext().LongTy), in GenerateSEHFilterFunction()
DCodeGenFunction.cpp1694 entry = Builder.CreateIntCast(Size, SizeTy, /*signed*/ false); in EmitVariablyModifiedType()
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h239 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c");
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp940 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSet()
1663 V = B.CreateIntCast(V, B.getInt32Ty(), false); in optimizeFFS()
1783 return B.CreateIntCast(Res, CI->getType(), true); in optimizePrintFString()
1807 return B.CreateIntCast(Res, CI->getType(), true); in optimizePrintFString()
1900 return B.CreateIntCast(Len, CI->getType(), false); in optimizeSPrintFString()
2084 return B.CreateIntCast(Res, CI->getType(), true); in optimizePuts()
2457 Value *Val = B.CreateIntCast(CI->getArgOperand(1), B.getInt8Ty(), false); in optimizeMemSetChk()
DBuildLibCalls.cpp300 B.CreateIntCast(Char, in EmitPutChar()
359 Char = B.CreateIntCast(Char, B.getInt32Ty(), /*isSigned*/true, in EmitFPutC()
/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
DIRBuilder.h1375 Value *CreateIntCast(Value *V, Type *DestTy, bool isSigned,
1380 return Insert(Folder.CreateIntCast(VC, DestTy, isSigned), Name);
1402 Value *CreateIntCast(Value *, Type *, const char *) = delete;
1763 OffsetValue = CreateIntCast(OffsetValue, IntPtrTy, /*isSigned*/ true,
/external/llvm/include/llvm/Analysis/
DTargetFolder.h174 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() function
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp602 In = Builder->CreateIntCast(In, CI.getType(), false/*ZExt*/); in transformZExtICmp()
985 In = Builder->CreateIntCast(In, CI.getType(), true/*SExt*/); in transformSExtICmp()
DInstCombineLoadStoreAlloca.cpp216 Value *V = IC.Builder->CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
DInstCombineAddSub.cpp1489 return Builder->CreateIntCast(Result, Ty, true); in OptimizePointerDifference()
DInstCombineCompares.cpp485 Value *V = Builder->CreateIntCast(Idx, Ty, false); in FoldCmpLoadFromIndexedGlobal()
592 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, in EvaluateGEPOffsetExpression()

12