Home
last modified time | relevance | path

Searched refs:Trunc (Results 1 – 25 of 175) sorted by relevance

1234567

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTypePromotion.cpp241 else if (auto *Trunc = dyn_cast<TruncInst>(V)) in isSource() local
242 return EqualTypeSize(Trunc); in isSource()
566 auto *Trunc = dyn_cast<Instruction>(Builder.CreateTrunc(V, TruncTy)); in TruncateSinks() local
567 if (Trunc) in TruncateSinks()
568 NewInsts.insert(Trunc); in TruncateSinks()
569 return Trunc; in TruncateSinks()
582 if (Instruction *Trunc = InsertTrunc(Arg, Ty)) { in TruncateSinks() local
583 Trunc->moveBefore(Call); in TruncateSinks()
584 Call->setArgOperand(i, Trunc); in TruncateSinks()
593 if (Instruction *Trunc = InsertTrunc(Switch->getCondition(), Ty)) { in TruncateSinks() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp508 Value *Trunc; in expandRemainderUpTo32Bits() local
520 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo32Bits()
522 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits()
556 Value *Trunc; in expandRemainderUpTo64Bits() local
568 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo64Bits()
570 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits()
605 Value *Trunc; in expandDivisionUpTo32Bits() local
617 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo32Bits()
619 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits()
654 Value *Trunc; in expandDivisionUpTo64Bits() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp193 case Instruction::Trunc: in EvaluateInDifferentType()
420 case Instruction::Trunc: in canEvaluateTruncated()
457 static Instruction *foldVecTruncToExtElt(TruncInst &Trunc, InstCombiner &IC) { in foldVecTruncToExtElt() argument
458 Value *TruncOp = Trunc.getOperand(0); in foldVecTruncToExtElt()
459 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt()
496 Instruction *InstCombiner::narrowRotate(TruncInst &Trunc) { in narrowRotate() argument
497 assert((isa<VectorType>(Trunc.getSrcTy()) || in narrowRotate()
498 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowRotate()
503 Type *DestTy = Trunc.getType(); in narrowRotate()
511 if (!match(Trunc.getOperand(0), m_OneUse(m_Or(m_Value(Or0), m_Value(Or1))))) in narrowRotate()
[all …]
DInstCombineShifts.cpp48 Value *Trunc = nullptr; in reassociateShiftAmtsOfTwoSameDirectionShifts() local
50 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
98 if (Trunc && !AnalyzeForSignBitExtraction && in reassociateShiftAmtsOfTwoSameDirectionShifts()
120 if (HadTwoRightShifts && (Trunc || AnalyzeForSignBitExtraction)) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
139 if (!Trunc) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
153 if (Trunc) { in reassociateShiftAmtsOfTwoSameDirectionShifts()
155 Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType()); in reassociateShiftAmtsOfTwoSameDirectionShifts()
190 Value *Trunc; in dropRedundantMaskingOfLeftShiftInput() local
191 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput()
192 !Trunc->hasOneUse()) in dropRedundantMaskingOfLeftShiftInput()
/third_party/skia/tests/sksl/intrinsics/
DTrunc.asm.frag92 %32 = OpExtInst %float %1 Trunc %38
100 %42 = OpExtInst %v2float %1 Trunc %45
112 %53 = OpExtInst %v3float %1 Trunc %56
123 %65 = OpExtInst %v4float %1 Trunc %67
/third_party/flutter/skia/third_party/externals/sdl/src/stdlib/
DSDL_qsort.c265 #define Recurse(Trunc) \ argument
267 if (l<Trunc) { \
268 if (r>=Trunc) doRight \
272 else if (r>=Trunc) { pushRight; doLeft }\
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp44 case Instruction::Trunc: in getRelevantOperands()
104 case Instruction::Trunc: in buildTruncExpressionDag()
311 case Instruction::Trunc: in ReduceExpressionDag()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp207 Value *Trunc = Builder.CreateTrunc(ExtractBits, ArgIntTy); in runOnFunction() local
208 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy, in runOnFunction()
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.1/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.0/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/flutter/skia/third_party/externals/spirv-headers/include/spirv/1.1/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/include/spirv/1.0/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.2/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/flutter/skia/third_party/externals/spirv-headers/include/spirv/1.0/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/spirv-headers/include/spirv/1.0/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/include/spirv/1.1/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/spirv-headers/include/spirv/1.1/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/flutter/skia/third_party/externals/spirv-headers/include/spirv/1.2/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/spirv-headers/include/spirv/1.2/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/include/spirv/1.2/
DOpenCL.std.h98 Trunc = 66, enumerator
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/trunc/
Deb83df.wgsl.expected.spvasm40 %13 = OpExtInst %float %14 Trunc %float_1
Df370d3.wgsl.expected.spvasm42 %13 = OpExtInst %v2float %15 Trunc %16
De183aa.wgsl.expected.spvasm40 %13 = OpExtInst %v4float %14 Trunc %5
D562d05.wgsl.expected.spvasm42 %13 = OpExtInst %v3float %15 Trunc %16
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp451 void widenIntOrFpInduction(PHINode *IV, TruncInst *Trunc = nullptr);
1164 auto *Trunc = dyn_cast<TruncInst>(I); in isOptimizableIVTruncate() local
1165 if (!Trunc) in isOptimizableIVTruncate()
1177 Value *Op = Trunc->getOperand(0); in isOptimizableIVTruncate()
1699 Start = Builder.CreateCast(Instruction::Trunc, Start, TruncType); in createVectorIntOrFpInductionPHI()
1805 void InnerLoopVectorizer::widenIntOrFpInduction(PHINode *IV, TruncInst *Trunc) { in widenIntOrFpInduction() argument
1821 Instruction *EntryVal = Trunc ? cast<Instruction>(Trunc) : IV; in widenIntOrFpInduction()
1868 if (Trunc) { in widenIntOrFpInduction()
1869 auto *TruncType = cast<IntegerType>(Trunc->getType()); in widenIntOrFpInduction()
1886 if (Trunc) in widenIntOrFpInduction()
[all …]

1234567