Home
last modified time | relevance | path

Searched refs:SQ (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DInstSimplifyPass.cpp31 static bool runImpl(Function &F, const SimplifyQuery &SQ, in runImpl() argument
40 if (!SQ.DT->isReachableFromEntry(&BB)) in runImpl()
56 if (Value *V = SimplifyInstruction(&I, SQ, ORE)) { in runImpl()
69 RecursivelyDeleteTriviallyDeadInstructions(DeadInstsInBB, SQ.TLI); in runImpl()
110 const SimplifyQuery SQ(DL, TLI, DT, AC); in runOnFunction() local
111 return runImpl(F, SQ, ORE); in runOnFunction()
138 const SimplifyQuery SQ(DL, &TLI, &DT, &AC); in run() local
139 bool Changed = runImpl(F, SQ, &ORE); in run()
DLoopRotation.cpp44 const SimplifyQuery SQ = getBestSimplifyQuery(AR, DL); in run() local
51 SQ, false, Threshold, false); in run()
99 const SimplifyQuery SQ = getBestSimplifyQuery(*this, F); in runOnLoop() local
109 MSSAU.hasValue() ? MSSAU.getPointer() : nullptr, SQ, in runOnLoop()
DLoopInstSimplify.cpp55 SimplifyQuery SQ(DL, &TLI, &DT, &AC); in simplifyLoopInst() local
104 Value *V = SimplifyInstruction(&I, SQ.getWithInstruction(&I)); in simplifyLoopInst()
DCorrelatedValuePropagation.cpp213 const SimplifyQuery &SQ) { in processPHI() argument
267 if (Value *V = SimplifyInstruction(P, SQ)) { in processPHI()
831 const SimplifyQuery &SQ) { in runImpl() argument
847 BBChanged |= processPHI(cast<PHINode>(II), LVI, DT, SQ); in runImpl()
/third_party/cmsis/CMSIS/DSP/Source/QuaternionMathFunctions/
Darm_quaternion_norm_f32.c90 temp = SQ(pInputQuaternions[4 * i + 0]) + in arm_quaternion_norm_f32()
91 SQ(pInputQuaternions[4 * i + 1]) + in arm_quaternion_norm_f32()
92 SQ(pInputQuaternions[4 * i + 2]) + in arm_quaternion_norm_f32()
93 SQ(pInputQuaternions[4 * i + 3]); in arm_quaternion_norm_f32()
Darm_quaternion_normalize_f32.c90 temp = SQ(pInputQuaternions[4 * i + 0]) + in arm_quaternion_normalize_f32()
91 SQ(pInputQuaternions[4 * i + 1]) + in arm_quaternion_normalize_f32()
92 SQ(pInputQuaternions[4 * i + 2]) + in arm_quaternion_normalize_f32()
93 SQ(pInputQuaternions[4 * i + 3]); in arm_quaternion_normalize_f32()
Darm_quaternion_inverse_f32.c98 temp = SQ(pInputQuaternions[4 * i + 0]) + in arm_quaternion_inverse_f32()
99 SQ(pInputQuaternions[4 * i + 1]) + in arm_quaternion_inverse_f32()
100 SQ(pInputQuaternions[4 * i + 2]) + in arm_quaternion_inverse_f32()
101 SQ(pInputQuaternions[4 * i + 3]); in arm_quaternion_inverse_f32()
Darm_quaternion2rotation_f32.c150 float32_t q00 = SQ(pInputQuaternions[0 + nb * 4]); in arm_quaternion2rotation_f32()
151 float32_t q11 = SQ(pInputQuaternions[1 + nb * 4]); in arm_quaternion2rotation_f32()
152 float32_t q22 = SQ(pInputQuaternions[2 + nb * 4]); in arm_quaternion2rotation_f32()
153 float32_t q33 = SQ(pInputQuaternions[3 + nb * 4]); in arm_quaternion2rotation_f32()
/third_party/mesa3d/src/mesa/math/
Dm_matrix.c1108 #define SQ(x) ((x)*(x)) macro
1158 if (SQ(mm-1) > SQ(1e-6F) || in analyse_from_scratch()
1159 SQ(m4m4-1) > SQ(1e-6F)) in analyse_from_scratch()
1163 if (SQ(mm4) > SQ(1e-6F)) in analyse_from_scratch()
1173 if (SQ(m[0]-m[5]) < SQ(1e-6F) && in analyse_from_scratch()
1174 SQ(m[0]-m[10]) < SQ(1e-6F)) { in analyse_from_scratch()
1175 if (SQ(m[0]-1.0F) > SQ(1e-6F)) { in analyse_from_scratch()
1193 if (SQ(c1-c2) < SQ(1e-6F) && SQ(c1-c3) < SQ(1e-6F)) { in analyse_from_scratch()
1194 if (SQ(c1-1.0F) > SQ(1e-6F)) in analyse_from_scratch()
1203 if (SQ(d1) < SQ(1e-6F)) { in analyse_from_scratch()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DYAMLTraits.cpp209 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) in beginSequence() local
210 return SQ->Entries.size(); in beginSequence()
229 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightElement() local
231 CurrentNode = SQ->Entries[Index].get(); in preflightElement()
246 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightFlowElement() local
248 CurrentNode = SQ->Entries[index].get(); in preflightFlowElement()
292 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in beginBitSetScalar() local
293 BitValuesUsed.insert(BitValuesUsed.begin(), SQ->Entries.size(), false); in beginBitSetScalar()
304 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in bitSetMatch() local
306 for (auto &N : SQ->Entries) { in bitSetMatch()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/
DLSUnit.h421 LSUnit(const MCSchedModel &SM, unsigned LQ, unsigned SQ) in LSUnit() argument
422 : LSUnit(SM, LQ, SQ, /* NoAlias */ false) {} in LSUnit()
423 LSUnit(const MCSchedModel &SM, unsigned LQ, unsigned SQ, bool AssumeNoAlias) in LSUnit() argument
424 : LSUnitBase(SM, LQ, SQ, AssumeNoAlias), CurrentLoadGroupID(0), in LSUnit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopRotationUtils.cpp59 const SimplifyQuery &SQ; member in __anonab06c9950111::LoopRotate
67 const SimplifyQuery &SQ, bool RotationOnly, bool IsUtilMode) in LoopRotate() argument
69 MSSAU(MSSAU), SQ(SQ), RotationOnly(RotationOnly), in LoopRotate()
365 Value *V = SimplifyInstruction(C, SQ); in rotateLoop()
667 const SimplifyQuery &SQ, bool RotationOnly = true, in LoopRotation() argument
672 LoopRotate LR(Threshold, LI, TTI, AC, DT, SE, MSSAU, SQ, RotationOnly, in LoopRotation()
DPromoteMemoryToRegister.cpp235 const SimplifyQuery SQ; member
272 AC(AC), SQ(DT.getRoot()->getParent()->getParent()->getDataLayout(), in PromoteMem2Reg()
566 if (rewriteSingleStoreAlloca(AI, Info, LBI, SQ.DL, DT, AC)) { in run()
577 promoteSingleBlockAlloca(AI, Info, LBI, SQ.DL, DT, AC)) { in run()
694 if (Value *V = SimplifyInstruction(PN, SQ)) { in run()
950 !isKnownNonZero(V, SQ.DL, 0, AC, LI, &DT)) in RenamePass()
/third_party/cmsis/CMSIS/DSP/Source/SVMFunctions/
Darm_svm_rbf_predict_f32.c416 dotV = vsetq_lane_f32(vgetq_lane_f32(dotV,0) + SQ(*pIn - *pSupporta), dotV,0); in arm_svm_rbf_predict_f32()
417 dotV = vsetq_lane_f32(vgetq_lane_f32(dotV,1) + SQ(*pIn - *pSupportb), dotV,1); in arm_svm_rbf_predict_f32()
418 dotV = vsetq_lane_f32(vgetq_lane_f32(dotV,2) + SQ(*pIn - *pSupportc), dotV,2); in arm_svm_rbf_predict_f32()
419 dotV = vsetq_lane_f32(vgetq_lane_f32(dotV,3) + SQ(*pIn - *pSupportd), dotV,3); in arm_svm_rbf_predict_f32()
481 dot = dot + SQ(*pIn - *pSupport); in arm_svm_rbf_predict_f32()
510 dot = dot + SQ(in[j] - *pSupport); in arm_svm_rbf_predict_f32()
/third_party/cmsis/CMSIS/DSP/Source/DistanceFunctions/
Darm_euclidean_distance_f32.c125 accum += SQ(tmp); in arm_euclidean_distance_f32()
140 accum += SQ(tmp); in arm_euclidean_distance_f32()
Darm_euclidean_distance_f16.c116 accum += SQ(tmp); in arm_euclidean_distance_f16()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/HardwareUnits/
DLSUnit.cpp24 LSUnitBase::LSUnitBase(const MCSchedModel &SM, unsigned LQ, unsigned SQ, in LSUnitBase() argument
26 : LQSize(LQ), SQSize(SQ), UsedLQEntries(0), UsedSQEntries(0), in LSUnitBase()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DLoopRotationUtils.h35 MemorySSAUpdater *MSSAU, const SimplifyQuery &SQ,
/third_party/mesa3d/src/amd/common/
Dac_perfcounter.h65 SQ = 0x6, enumerator
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp351 if (Value *V = SimplifyBinOp(Opcode, B, C, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
384 if (Value *V = SimplifyBinOp(Opcode, A, B, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
412 if (Value *V = SimplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
432 if (Value *V = SimplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
578 V = SimplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
597 V = SimplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
704 Value *L = SimplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in SimplifyUsingDistributiveLaws()
705 Value *R = SimplifyBinOp(TopLevelOpcode, B, C, SQ.getWithInstruction(&I)); in SimplifyUsingDistributiveLaws()
741 Value *L = SimplifyBinOp(TopLevelOpcode, A, B, SQ.getWithInstruction(&I)); in SimplifyUsingDistributiveLaws()
742 Value *R = SimplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in SimplifyUsingDistributiveLaws()
[all …]
DInstCombineMulDivRem.cpp173 SQ.getWithInstruction(&I))) in visitMul()
396 SQ.getWithInstruction(&I))) in visitFMul()
956 SQ.getWithInstruction(&I))) in visitUDiv()
1050 SQ.getWithInstruction(&I))) in visitSDiv()
1205 SQ.getWithInstruction(&I))) in visitFDiv()
1355 SQ.getWithInstruction(&I))) in visitURem()
1406 SQ.getWithInstruction(&I))) in visitSRem()
1485 SQ.getWithInstruction(&I))) in visitFRem()
DInstCombineShifts.cpp35 BinaryOperator *Sh0, const SimplifyQuery &SQ, in reassociateShiftAmtsOfTwoSameDirectionShifts() argument
105 SQ.getWithInstruction(Sh0))); in reassociateShiftAmtsOfTwoSameDirectionShifts()
389 reassociateShiftAmtsOfTwoSameDirectionShifts(&I, SQ))) in commonShiftTransforms()
926 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitShl()
1049 SQ.getWithInstruction(&I))) in visitLShr()
1247 SQ.getWithInstruction(&I))) in visitAShr()
DInstCombineInternal.h326 const SimplifyQuery SQ; variable
345 DL(DL), SQ(DL, &TLI, &DT, &AC), ORE(ORE), BFI(BFI), PSI(PSI), LI(LI) {} in InstCombiner()
395 BinaryOperator *Sh0, const SimplifyQuery &SQ,
924 Instruction *foldICmpBinOp(ICmpInst &Cmp, const SimplifyQuery &SQ);
/third_party/cmsis/CMSIS/DSP/Include/dsp/
Dutils.h43 #define SQ(x) ((x) * (x)) macro
/third_party/ffmpeg/libavcodec/
Dme_cmp.c946 #define SQ(a) ((a) * (a)) macro
956 score += SQ(s[x] - s[x + stride]) + \
957 SQ(s[x + 1] - s[x + stride + 1]) + \
958 SQ(s[x + 2] - s[x + stride + 2]) + \
959 SQ(s[x + 3] - s[x + stride + 3]); \
977 score += SQ(s1[x] - s2[x] - s1[x + stride] + s2[x + stride]); \

1234