/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 525 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo32Bits() 575 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo64Bits() 626 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo32Bits() 676 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo64Bits()
|
D | SimplifyCFG.cpp | 3872 return Builder.CreateTrunc(DownShifted, BitMapElementTy, in BuildLookup() 4208 Value *LoBit = Builder.CreateTrunc(Shifted, in SwitchToLookupTable()
|
D | SimplifyLibCalls.cpp | 1671 Value *V = B.CreateTrunc(CI->getArgOperand(2), B.getInt8Ty(), "char"); in optimizeSPrintFString()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 177 V = CGF.Builder.CreateTrunc(V, IntTy); in EmitSignBit() 776 Value *ByteVal = Builder.CreateTrunc(EmitScalarExpr(E->getArg(1)), in EmitBuiltinExpr() 792 Value *ByteVal = Builder.CreateTrunc(EmitScalarExpr(E->getArg(1)), in EmitBuiltinExpr() 2776 return Builder.CreateTrunc(Ops[0], VTy, "vaddhn"); in EmitCommonNeonBuiltinExpr() 2972 return Builder.CreateTrunc(Ops[0], Ty, "vmovn"); in EmitCommonNeonBuiltinExpr() 3058 return Builder.CreateTrunc(Ops[0], Ty, "vshrn_n"); in EmitCommonNeonBuiltinExpr() 3095 return Builder.CreateTrunc(Ops[0], VTy, "vsubhn"); in EmitCommonNeonBuiltinExpr() 5164 return Builder.CreateTrunc(Ops[0], in EmitAArch64BuiltinExpr() 5178 return Builder.CreateTrunc(Ops[0], in EmitAArch64BuiltinExpr() 5192 return Builder.CreateTrunc(Ops[0], in EmitAArch64BuiltinExpr() [all …]
|
D | CGStmt.cpp | 2102 Tmp = Builder.CreateTrunc(Tmp, in EmitAsmStmt() 2109 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt() 2111 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
|
D | CGException.cpp | 1598 return Builder.CreateTrunc(Code, CGM.Int32Ty); in EmitSEHExceptionCode()
|
D | CGCall.cpp | 896 Val = CGF.Builder.CreateTrunc(Val, DestIntTy, "coerce.val.ii"); in CoerceIntOrPtrToIntOrPtr() 1666 return CGF.Builder.CreateTrunc(value, varType, "arg.unpromote"); in emitArgumentDemotion()
|
D | CGExprCXX.cpp | 639 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
|
D | CGExpr.cpp | 607 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 1237 return Builder.CreateTrunc(Value, Builder.getInt1Ty(), "tobool"); in EmitFromMemory()
|
D | CGExprScalar.cpp | 2406 handlerResult = Builder.CreateTrunc(handlerResult, opTy); in EmitOverflowCheckedBinOp() 3383 Val = Builder.CreateTrunc(Val, ArgTy); in VisitVAArgExpr()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 521 Value *Trunc0 = Builder.CreateTrunc(CI->getArgOperand(0), Type::getInt32Ty(C)); in UpgradeIntrinsicCall() 797 Args.back() = Builder.CreateTrunc(Args.back(), Type::getInt8Ty(C), "trunc"); in UpgradeIntrinsicCall() 812 Args[2] = Builder.CreateTrunc(Args[2], Type::getInt8Ty(C), "trunc"); in UpgradeIntrinsicCall()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 950 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); in truncateIVUse() 1001 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); in WidenIVUse() 1019 NewDef = Builder.CreateTrunc(DU.WideDef, DU.NarrowUse->getType()); in WidenIVUse() 1715 CmpIndVar = Builder.CreateTrunc(CmpIndVar, ExitCnt->getType(), in LinearFunctionTestReplace()
|
D | ScalarReplAggregates.cpp | 869 Builder.CreateTrunc(FromVal, IntegerType::get(FromVal->getContext(), in ConvertScalar_ExtractValue() 985 SV = Builder.CreateTrunc(SV, AllocaType); in ConvertScalar_InsertValue() 2396 EltVal = Builder.CreateTrunc(EltVal, in RewriteStoreUserOfWholeAlloca() 2437 EltVal = Builder.CreateTrunc(EltVal, in RewriteStoreUserOfWholeAlloca()
|
D | GVN.cpp | 1148 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad() 1200 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in GetLoadValueForLoad()
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 210 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 399 Idx = Builder->CreateTrunc(Idx, IntPtrTy); in FoldCmpLoadFromIndexedGlobal() 577 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression() 673 ROffset = Builder->CreateTrunc(ROffset, LHSIndexTy); in FoldGEPICmp() 675 LOffset = Builder->CreateTrunc(LOffset, RHSIndexTy); in FoldGEPICmp() 1637 Builder->CreateTrunc(LHSI->getOperand(0), NTy), in visitICmpInstWithInstAndIntCst() 2098 Value *TruncA = Builder->CreateTrunc(A, NewType, A->getName()+".trunc"); in ProcessUGT_ADDCST_ADD() 2099 Value *TruncB = Builder->CreateTrunc(B, NewType, B->getName()+".trunc"); in ProcessUGT_ADDCST_ADD() 3611 Builder->CreateTrunc(B, A->getType())); in visitICmpInst()
|
D | InstCombinePHI.cpp | 752 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
|
D | InstCombineCasts.cpp | 498 Value *NewTrunc = Builder->CreateTrunc(A, CI.getType(), A->getName()+".tr"); in visitTrunc() 837 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt()
|
D | InstructionCombining.cpp | 2102 Value *NewCond = Builder->CreateTrunc(SI.getCondition(), Ty, "trunc"); in visitSwitchInst()
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 1175 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") { 1195 return CreateTrunc(V, DestTy, Name); 1209 return CreateTrunc(V, DestTy, Name); 1610 V = CreateTrunc(V, ExtractedTy, Name + ".trunc"); in CreateExtractInteger()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 1332 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally() 1510 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1766 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder() 3332 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst() 3408 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | DataFlowSanitizer.cpp | 1100 Value *TruncShadow = IRB.CreateTrunc(WideShadow, DFS.ShadowTy); in loadShadow()
|
D | MemorySanitizer.cpp | 1313 setShadow(&I, IRB.CreateTrunc(getShadow(&I, 0), I.getType(), "_msprop")); in visitTruncInst()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2362 BypassBuilder.CreateTrunc(IdxEndRoundDown, OrigPhi->getType()); in createEmptyLoop() 3104 Broadcasted = Builder.CreateTrunc(Induction, PhiTy); in widenPHIInstruction()
|