Home
last modified time | relevance | path

Searched refs:CreateTrunc (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp525 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()
DSimplifyCFG.cpp3872 return Builder.CreateTrunc(DownShifted, BitMapElementTy, in BuildLookup()
4208 Value *LoBit = Builder.CreateTrunc(Shifted, in SwitchToLookupTable()
DSimplifyLibCalls.cpp1671 Value *V = B.CreateTrunc(CI->getArgOperand(2), B.getInt8Ty(), "char"); in optimizeSPrintFString()
/external/clang/lib/CodeGen/
DCGBuiltin.cpp177 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 …]
DCGStmt.cpp2102 Tmp = Builder.CreateTrunc(Tmp, in EmitAsmStmt()
2109 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
2111 Tmp = Builder.CreateTrunc(Tmp, TruncTy); in EmitAsmStmt()
DCGException.cpp1598 return Builder.CreateTrunc(Code, CGM.Int32Ty); in EmitSEHExceptionCode()
DCGCall.cpp896 Val = CGF.Builder.CreateTrunc(Val, DestIntTy, "coerce.val.ii"); in CoerceIntOrPtrToIntOrPtr()
1666 return CGF.Builder.CreateTrunc(value, varType, "arg.unpromote"); in emitArgumentDemotion()
DCGExprCXX.cpp639 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
DCGExpr.cpp607 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck()
1237 return Builder.CreateTrunc(Value, Builder.getInt1Ty(), "tobool"); in EmitFromMemory()
DCGExprScalar.cpp2406 handlerResult = Builder.CreateTrunc(handlerResult, opTy); in EmitOverflowCheckedBinOp()
3383 Val = Builder.CreateTrunc(Val, ArgTy); in VisitVAArgExpr()
/external/llvm/lib/IR/
DAutoUpgrade.cpp521 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/
DIndVarSimplify.cpp950 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()
DScalarReplAggregates.cpp869 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()
DGVN.cpp1148 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad()
1200 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in GetLoadValueForLoad()
/external/llvm/examples/BrainF/
DBrainF.cpp210 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp399 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()
DInstCombinePHI.cpp752 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
DInstCombineCasts.cpp498 Value *NewTrunc = Builder->CreateTrunc(A, CI.getType(), A->getName()+".tr"); in visitTrunc()
837 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt()
DInstructionCombining.cpp2102 Value *NewCond = Builder->CreateTrunc(SI.getCondition(), Ty, "trunc"); in visitSwitchInst()
/external/llvm/include/llvm/IR/
DIRBuilder.h1175 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/
DScalarEvolutionExpander.cpp1332 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
1510 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1766 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/
DDataFlowSanitizer.cpp1100 Value *TruncShadow = IRB.CreateTrunc(WideShadow, DFS.ShadowTy); in loadShadow()
DMemorySanitizer.cpp1313 setShadow(&I, IRB.CreateTrunc(getShadow(&I, 0), I.getType(), "_msprop")); in visitTruncInst()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2362 BypassBuilder.CreateTrunc(IdxEndRoundDown, OrigPhi->getType()); in createEmptyLoop()
3104 Broadcasted = Builder.CreateTrunc(Induction, PhiTy); in widenPHIInstruction()

12