Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp521 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/
DCGBuiltin.cpp299 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 …]
DCGStmt.cpp2131 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/
DAtomicExpandPass.cpp628 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()
DCodeGenPrepare.cpp2304 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/
DBrainF.cpp209 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
/external/llvm/examples/BrainF/
DBrainF.cpp219 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp1202 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()
DGVN.cpp789 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()
DSROA.cpp2029 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/
DIndVarSimplify.cpp1002 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()
DScalarReplAggregates.cpp761 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()
DGVN.cpp971 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8)); in GetStoreValueForLoad()
1023 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in GetLoadValueForLoad()
DCodeGenPrepare.cpp855 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp403 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()
DInstCombineCasts.cpp570 Value *NewTrunc = Builder->CreateTrunc(A, DestTy, A->getName() + ".tr"); in visitTrunc()
912 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt()
DInstCombinePHI.cpp828 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp493 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()
DInstCombineCompares.cpp367 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()
DInstCombinePHI.cpp756 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); in SliceUpIllegalIntegerPHI()
/external/llvm/include/llvm/IR/
DIRBuilder.h1263 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/
DAutoUpgrade.cpp894 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/
DScalarEvolutionExpander.cpp1362 Result = Builder.CreateTrunc(Result, TruncTy); in expandAddRecExprLiterally()
1540 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolutionExpander.cpp1294 Value *I = Builder.CreateTrunc(V, Ty); in visitTruncateExpr()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRBuilder.h916 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {

12