/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 521 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo32Bits() 569 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo64Bits() 618 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo32Bits() 667 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo64Bits()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 299 V = CGF.Builder.CreateTrunc(V, IntTy); in EmitSignBit() 1044 Value *ByteVal = Builder.CreateTrunc(EmitScalarExpr(E->getArg(1)), in EmitBuiltinExpr() 1061 Value *ByteVal = Builder.CreateTrunc(EmitScalarExpr(E->getArg(1)), in EmitBuiltinExpr() 1803 llvm::Value *ResultTrunc = Builder.CreateTrunc(Result, ResultLLVMTy); in EmitBuiltinExpr() 3384 return Builder.CreateTrunc(Ops[0], VTy, "vaddhn"); in EmitCommonNeonBuiltinExpr() 3559 return Builder.CreateTrunc(Ops[0], Ty, "vmovn"); in EmitCommonNeonBuiltinExpr() 3641 return Builder.CreateTrunc(Ops[0], Ty, "vshrn_n"); in EmitCommonNeonBuiltinExpr() 3679 return Builder.CreateTrunc(Ops[0], VTy, "vsubhn"); in EmitCommonNeonBuiltinExpr() 3892 return Builder.CreateTrunc(Call, ValueType); in EmitSpecialRegisterBuiltin() 5900 return Builder.CreateTrunc(Ops[0], Int8Ty); in EmitAArch64BuiltinExpr() [all …]
|
D | CGStmt.cpp | 2131 Tmp = Builder.CreateTrunc(Tmp, in EmitAsmStmt() 2138 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt() 2140 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 628 Ret.ShiftAmt = Builder.CreateTrunc(Ret.ShiftAmt, Ret.WordType, "ShiftAmt"); in createMaskInstrs() 673 Value *Loaded_Shiftdown = Builder.CreateTrunc( in performMaskedAtomicOp() 721 Value *FinalOldResult = Builder.CreateTrunc( in expandPartwordAtomicRMW() 843 Value *FinalOldVal = Builder.CreateTrunc( in expandPartwordCmpXchg()
|
D | CodeGenPrepare.cpp | 2304 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder() 3902 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst() 3978 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
|
/external/swiftshader/third_party/LLVM/examples/BrainF/ |
D | BrainF.cpp | 209 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 219 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 1202 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); in truncateIVUse() 1274 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); in widenIVUse() 1292 NewDef = Builder.CreateTrunc(DU.WideDef, DU.NarrowUse->getType()); in widenIVUse() 1987 CmpIndVar = Builder.CreateTrunc(CmpIndVar, ExitCnt->getType(), in linearFunctionTestReplace()
|
D | GVN.cpp | 789 StoredVal = IRB.CreateTrunc(StoredVal, NewIntTy, "trunc"); in CoerceAvailableValueToLoadType() 1015 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad() 1066 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in GetLoadValueForLoad()
|
D | SROA.cpp | 2029 V = IRB.CreateTrunc(V, Ty, Name + ".trunc"); in extractInteger() 2541 V = IRB.CreateTrunc(V, AITy, "load.trunc"); in visitStoreInst()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 1002 NewDef = Builder.CreateTrunc(DU.WideDef, DU.NarrowUse->getType()); in WidenIVUse() 1041 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); in WidenIVUse() 1626 CmpIndVar = Builder.CreateTrunc(CmpIndVar, CmpTy, "lftr.wideiv"); in LinearFunctionTestReplace()
|
D | ScalarReplAggregates.cpp | 761 Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue() 855 SV = Builder.CreateTrunc(SV, AllocaType); in ConvertScalar_InsertValue() 2230 EltVal = Builder.CreateTrunc(EltVal, in RewriteStoreUserOfWholeAlloca() 2271 EltVal = Builder.CreateTrunc(EltVal, in RewriteStoreUserOfWholeAlloca()
|
D | GVN.cpp | 971 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad() 1023 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in GetLoadValueForLoad()
|
D | CodeGenPrepare.cpp | 855 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 403 Idx = Builder->CreateTrunc(Idx, IntPtrTy); in FoldCmpLoadFromIndexedGlobal() 577 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression() 988 ROffset = Builder->CreateTrunc(ROffset, LHSIndexTy); in FoldGEPICmp() 990 LOffset = Builder->CreateTrunc(LOffset, RHSIndexTy); in FoldGEPICmp() 1864 Value *Trunc = Builder->CreateTrunc(LHSI->getOperand(0), NTy); in visitICmpInstWithInstAndIntCst() 2068 Builder->CreateTrunc(LHSI->getOperand(0), NTy), in visitICmpInstWithInstAndIntCst() 2560 Value *TruncA = Builder->CreateTrunc(A, NewType, A->getName()+".trunc"); in ProcessUGT_ADDCST_ADD() 2561 Value *TruncB = Builder->CreateTrunc(B, NewType, B->getName()+".trunc"); in ProcessUGT_ADDCST_ADD() 4205 Builder->CreateTrunc(B, A->getType())); in visitICmpInst()
|
D | InstCombineCasts.cpp | 570 Value *NewTrunc = Builder->CreateTrunc(A, DestTy, A->getName() + ".tr"); in visitTrunc() 912 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt()
|
D | InstCombinePHI.cpp | 828 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 493 Value *NewTrunc = Builder->CreateTrunc(A, CI.getType(), A->getName()+".tr"); in visitTrunc() 824 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt() 1309 Value *P = Builder->CreateTrunc(CI.getOperand(0), in visitIntToPtr()
|
D | InstCombineCompares.cpp | 367 Idx = Builder->CreateTrunc(Idx, TD->getIntPtrType(Idx->getContext())); in FoldCmpLoadFromIndexedGlobal() 535 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression() 1694 Value *TruncA = Builder->CreateTrunc(A, NewType, A->getName()+".trunc"); in ProcessUGT_ADDCST_ADD() 1695 Value *TruncB = Builder->CreateTrunc(B, NewType, B->getName()+".trunc"); in ProcessUGT_ADDCST_ADD()
|
D | InstCombinePHI.cpp | 756 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 1263 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") { 1283 return CreateTrunc(V, DestTy, Name); 1297 return CreateTrunc(V, DestTy, Name); 1754 V = CreateTrunc(V, ExtractedTy, Name + ".trunc"); in CreateExtractInteger()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 894 Value *Trunc0 = Builder.CreateTrunc(CI->getArgOperand(0), Type::getInt32Ty(C)); in UpgradeIntrinsicCall() 1329 Args.back() = Builder.CreateTrunc(Args.back(), Type::getInt8Ty(C), "trunc"); in UpgradeIntrinsicCall()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 1362 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally() 1540 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 1294 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | IRBuilder.h | 916 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {
|