Home
last modified time | relevance | path

Searched refs:InstArithmetic (Results 1 – 22 of 22) sorted by relevance

/external/swiftshader/third_party/subzero/src/
DWasmTranslator.cpp408 InstArithmetic::create(Func, InstArithmetic::Add, Dest, Left, Right)); in Binop()
412 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Fadd, in Binop()
418 InstArithmetic::create(Func, InstArithmetic::Sub, Dest, Left, Right)); in Binop()
422 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Fsub, in Binop()
428 InstArithmetic::create(Func, InstArithmetic::Mul, Dest, Left, Right)); in Binop()
432 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Fmul, in Binop()
437 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Sdiv, in Binop()
442 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Udiv, in Binop()
447 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Fdiv, in Binop()
452 Control()->appendInst(InstArithmetic::create(Func, InstArithmetic::Urem, in Binop()
[all …]
DIceTargetLoweringARM32.cpp456 const InstArithmetic::OpKind Op = in genTargetHelperCallFor()
457 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
462 case InstArithmetic::Fdiv: in genTargetHelperCallFor()
463 case InstArithmetic::Frem: in genTargetHelperCallFor()
464 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
465 case InstArithmetic::Srem: in genTargetHelperCallFor()
466 case InstArithmetic::Udiv: in genTargetHelperCallFor()
467 case InstArithmetic::Urem: in genTargetHelperCallFor()
484 case InstArithmetic::Udiv: in genTargetHelperCallFor()
487 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
[all …]
DIceConverter.cpp277 return convertArithInstruction(Instr, Ice::InstArithmetic::Add); in convertInstruction()
279 return convertArithInstruction(Instr, Ice::InstArithmetic::Sub); in convertInstruction()
281 return convertArithInstruction(Instr, Ice::InstArithmetic::Mul); in convertInstruction()
283 return convertArithInstruction(Instr, Ice::InstArithmetic::Udiv); in convertInstruction()
285 return convertArithInstruction(Instr, Ice::InstArithmetic::Sdiv); in convertInstruction()
287 return convertArithInstruction(Instr, Ice::InstArithmetic::Urem); in convertInstruction()
289 return convertArithInstruction(Instr, Ice::InstArithmetic::Srem); in convertInstruction()
291 return convertArithInstruction(Instr, Ice::InstArithmetic::Shl); in convertInstruction()
293 return convertArithInstruction(Instr, Ice::InstArithmetic::Lshr); in convertInstruction()
295 return convertArithInstruction(Instr, Ice::InstArithmetic::Ashr); in convertInstruction()
[all …]
DIceTargetLoweringX86BaseImpl.h188 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) {
193 case InstArithmetic::And:
194 case InstArithmetic::Or:
646 inline bool canRMW(const InstArithmetic *Arith) {
661 case InstArithmetic::Add:
662 case InstArithmetic::Sub:
663 case InstArithmetic::And:
664 case InstArithmetic::Or:
665 case InstArithmetic::Xor:
667 case InstArithmetic::Shl:
[all …]
DIceASanInstrumentation.cpp228 InstArithmetic *ShadowIndexCalc; in instrumentFuncStart()
229 InstArithmetic *ShadowLocCalc; in instrumentFuncStart()
267 InstArithmetic::create(Func, InstArithmetic::Lshr, ShadowIndexVar, in instrumentFuncStart()
270 InstArithmetic::create(Func, InstArithmetic::Add, FirstShadowLocVar, in instrumentFuncStart()
331 Context.insert(InstArithmetic::create(Func, InstArithmetic::Add, in instrumentFuncStart()
DIceTargetLoweringMIPS32.cpp359 const InstArithmetic::OpKind Op = in genTargetHelperCallFor()
360 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
374 case InstArithmetic::Udiv: in genTargetHelperCallFor()
377 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
380 case InstArithmetic::Urem: in genTargetHelperCallFor()
383 case InstArithmetic::Srem: in genTargetHelperCallFor()
403 if (Op != InstArithmetic::Frem) { in genTargetHelperCallFor()
2267 InstArithmetic::create(Func, InstArithmetic::Add, NewBase, Base, _4)); in getOperandAtIndex()
2312 lowerArithmetic(InstArithmetic::create(Func, InstArithmetic::Add, NewBase, in hiOperand()
2450 void TargetMIPS32::lowerInt64Arithmetic(const InstArithmetic *Instr, in lowerInt64Arithmetic()
[all …]
DPNaClTranslator.cpp1614 void reportInvalidBinaryOp(Ice::InstArithmetic::OpKind Op, Ice::Type OpTy);
1618 bool isValidIntegerLogicalOp(Ice::InstArithmetic::OpKind Op, Ice::Type OpTy) { in isValidIntegerLogicalOp()
1628 bool isValidIntegerArithOp(Ice::InstArithmetic::OpKind Op, Ice::Type OpTy) { in isValidIntegerArithOp()
1637 bool isValidFloatingArithOp(Ice::InstArithmetic::OpKind Op, Ice::Type OpTy) { in isValidFloatingArithOp()
1749 Ice::InstArithmetic::OpKind &Op) { in convertBinopOpcode()
1756 Op = Ice::InstArithmetic::Add; in convertBinopOpcode()
1761 Op = Ice::InstArithmetic::Add; in convertBinopOpcode()
1764 Op = Ice::InstArithmetic::Fadd; in convertBinopOpcode()
1769 Op = Ice::InstArithmetic::Sub; in convertBinopOpcode()
1772 Op = Ice::InstArithmetic::Fsub; in convertBinopOpcode()
[all …]
DIceInst.h317 class InstArithmetic : public InstHighLevel {
318 InstArithmetic() = delete;
319 InstArithmetic(const InstArithmetic &) = delete;
320 InstArithmetic &operator=(const InstArithmetic &) = delete;
330 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, in create()
332 return new (Func->allocate<InstArithmetic>()) in create()
333 InstArithmetic(Func, Op, Dest, Source1, Source2); in create()
348 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1,
DIceInst.cpp273 InstArithmetic::InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, in InstArithmetic() function in Ice::InstArithmetic
280 const char *InstArithmetic::getInstName() const { in getInstName()
287 const char *InstArithmetic::getOpName(OpKind Op) { in getOpName()
288 return Op < InstArithmetic::_num ? InstArithmeticAttributes[Op].DisplayString in getOpName()
292 bool InstArithmetic::isCommutative() const { in isCommutative()
730 void InstArithmetic::dump(const Cfg *Func) const { in dump()
DIceCfg.cpp485 if (auto *A = llvm::dyn_cast<InstArithmetic>(InstrA)) { in localCSE()
486 auto *B = llvm::cast<InstArithmetic>(InstrB); in localCSE()
522 if (Instr.isDeleted() || !llvm::isa<InstArithmetic>(&Instr)) in localCSE()
873 InstArithmetic *Add = in sortAndCombineAllocas()
874 InstArithmetic::create(this, InstArithmetic::Add, Alloca->getDest(), in sortAndCombineAllocas()
1024 auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr); in rematerializeArithmetic()
1025 if (Arith == nullptr || Arith->getOp() != InstArithmetic::Add) in rematerializeArithmetic()
DIceInstrumentation.h59 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) { in instrumentArithmetic() argument
DIceInstrumentation.cpp67 instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr)); in instrumentInst()
DIceTargetLowering.h394 virtual void lowerArithmetic(const InstArithmetic *Instr) = 0;
494 void scalarizeArithmetic(InstArithmetic::OpKind K, Variable *Dest,
DIceCfgNode.cpp1468 InstArithmetic *TopLevelBoolOp = nullptr; in shortCircuit()
1474 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(&Inst)) { in shortCircuit()
1476 FoundOr = (Arith->getOp() == InstArithmetic::OpKind::Or); in shortCircuit()
1477 FoundAnd = (Arith->getOp() == InstArithmetic::OpKind::And); in shortCircuit()
DIceTargetLowering.cpp405 lowerArithmetic(llvm::cast<InstArithmetic>(Instr)); in lower()
941 void TargetLowering::scalarizeArithmetic(InstArithmetic::OpKind Kind, in scalarizeArithmetic()
947 return Context.insert<InstArithmetic>(Kind, Dest, Src0, Src1); in scalarizeArithmetic()
DIceTargetLoweringARM32.h211 SafeBoolChain lowerInt1Arithmetic(const InstArithmetic *Instr);
212 void lowerInt64Arithmetic(InstArithmetic::OpKind Op, Variable *Dest,
214 void lowerArithmetic(const InstArithmetic *Instr) override;
DIceTargetLoweringMIPS32.h766 void lowerArithmetic(const InstArithmetic *Instr) override;
767 void lowerInt64Arithmetic(const InstArithmetic *Instr, Variable *Dest,
DIceTargetLoweringX86Base.h267 void lowerArithmetic(const InstArithmetic *Instr) override;
1127 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
1134 void lowerArithAndConsumer(const InstArithmetic *Arith, const Inst *Consumer);
DIceInstX86Base.h263 Variable *Beacon, InstArithmetic::OpKind Op,
272 InstArithmetic::OpKind getOp() const { return Op; } in getOp()
282 InstArithmetic::OpKind Op;
284 InstArithmetic::OpKind Op, Variable *Beacon);
DIceInstX86BaseImpl.h52 InstArithmetic::OpKind Op, in InstX86FakeRMW()
415 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump()
/external/swiftshader/src/Reactor/
DOptimizer.cpp266 auto *arithmetic = llvm::cast<Ice::InstArithmetic>(use); in performScalarReplacementOfAggregates()
268 if(arithmetic->getOp() == Ice::InstArithmetic::Add) in performScalarReplacementOfAggregates()
625 auto *arithmetic = llvm::dyn_cast<Ice::InstArithmetic>(use); in isStaticallyIndexedArray()
626 if(arithmetic && arithmetic->getOp() == Ice::InstArithmetic::Add) in isStaticallyIndexedArray()
DSubzeroReactor.cpp1200 static bool isCommutative(Ice::InstArithmetic::OpKind op) in isCommutative()
1204 case Ice::InstArithmetic::Add: in isCommutative()
1205 case Ice::InstArithmetic::Fadd: in isCommutative()
1206 case Ice::InstArithmetic::Mul: in isCommutative()
1207 case Ice::InstArithmetic::Fmul: in isCommutative()
1208 case Ice::InstArithmetic::And: in isCommutative()
1209 case Ice::InstArithmetic::Or: in isCommutative()
1210 case Ice::InstArithmetic::Xor: in isCommutative()
1217 static Value *createArithmetic(Ice::InstArithmetic::OpKind op, Value *lhs, Value *rhs) in createArithmetic()
1224 …Ice::InstArithmetic *arithmetic = Ice::InstArithmetic::create(::function, op, result, swapOperands… in createArithmetic()
[all …]