Home
last modified time | relevance | path

Searched refs:InstArithmetic (Results 1 – 21 of 21) 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.cpp457 const InstArithmetic::OpKind Op = in genTargetHelperCallFor()
458 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
463 case InstArithmetic::Fdiv: in genTargetHelperCallFor()
464 case InstArithmetic::Frem: in genTargetHelperCallFor()
465 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
466 case InstArithmetic::Srem: in genTargetHelperCallFor()
467 case InstArithmetic::Udiv: in genTargetHelperCallFor()
468 case InstArithmetic::Urem: in genTargetHelperCallFor()
485 case InstArithmetic::Udiv: in genTargetHelperCallFor()
488 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:
662 inline bool canRMW(const InstArithmetic *Arith) {
677 case InstArithmetic::Add:
678 case InstArithmetic::Sub:
679 case InstArithmetic::And:
680 case InstArithmetic::Or:
681 case InstArithmetic::Xor:
683 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()
2282 InstArithmetic::create(Func, InstArithmetic::Add, NewBase, Base, _4)); in getOperandAtIndex()
2327 lowerArithmetic(InstArithmetic::create(Func, InstArithmetic::Add, NewBase, in hiOperand()
2465 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.h312 class InstArithmetic : public InstHighLevel {
313 InstArithmetic() = delete;
314 InstArithmetic(const InstArithmetic &) = delete;
315 InstArithmetic &operator=(const InstArithmetic &) = delete;
325 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, in create()
327 return new (Func->allocate<InstArithmetic>()) in create()
328 InstArithmetic(Func, Op, Dest, Source1, Source2); in create()
343 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1,
DIceInst.cpp281 InstArithmetic::InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, in InstArithmetic() function in Ice::InstArithmetic
288 const char *InstArithmetic::getInstName() const { in getInstName()
295 const char *InstArithmetic::getOpName(OpKind Op) { in getOpName()
296 return Op < InstArithmetic::_num ? InstArithmeticAttributes[Op].DisplayString in getOpName()
300 bool InstArithmetic::isCommutative() const { in isCommutative()
738 void InstArithmetic::dump(const Cfg *Func) const { in dump()
DIceInstrumentation.h59 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) { in instrumentArithmetic() argument
DIceCfg.cpp582 if (auto *A = llvm::dyn_cast<InstArithmetic>(InstrA)) { in localCSE()
583 auto *B = llvm::cast<InstArithmetic>(InstrB); in localCSE()
619 if (Instr.isDeleted() || !llvm::isa<InstArithmetic>(&Instr)) in localCSE()
970 InstArithmetic *Add = in sortAndCombineAllocas()
971 InstArithmetic::create(this, InstArithmetic::Add, Alloca->getDest(), in sortAndCombineAllocas()
1121 auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr); in rematerializeArithmetic()
1122 if (Arith == nullptr || Arith->getOp() != InstArithmetic::Add) in rematerializeArithmetic()
DIceInstrumentation.cpp67 instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr)); in instrumentInst()
DIceTargetLowering.h401 virtual void lowerArithmetic(const InstArithmetic *Instr) = 0;
503 void scalarizeArithmetic(InstArithmetic::OpKind K, Variable *Dest,
DIceCfgNode.cpp1517 InstArithmetic *TopLevelBoolOp = nullptr; in shortCircuit()
1523 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(&Inst)) { in shortCircuit()
1525 FoundOr = (Arith->getOp() == InstArithmetic::OpKind::Or); in shortCircuit()
1526 FoundAnd = (Arith->getOp() == InstArithmetic::OpKind::And); in shortCircuit()
DIceTargetLowering.cpp418 lowerArithmetic(llvm::cast<InstArithmetic>(Instr)); in lower()
954 void TargetLowering::scalarizeArithmetic(InstArithmetic::OpKind Kind, in scalarizeArithmetic()
959 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;
1141 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
1148 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/
DSubzeroReactor.cpp1114 static bool isCommutative(Ice::InstArithmetic::OpKind op) in isCommutative()
1118 case Ice::InstArithmetic::Add: in isCommutative()
1119 case Ice::InstArithmetic::Fadd: in isCommutative()
1120 case Ice::InstArithmetic::Mul: in isCommutative()
1121 case Ice::InstArithmetic::Fmul: in isCommutative()
1122 case Ice::InstArithmetic::And: in isCommutative()
1123 case Ice::InstArithmetic::Or: in isCommutative()
1124 case Ice::InstArithmetic::Xor: in isCommutative()
1131 static Value *createArithmetic(Ice::InstArithmetic::OpKind op, Value *lhs, Value *rhs) in createArithmetic()
1138 …Ice::InstArithmetic *arithmetic = Ice::InstArithmetic::create(::function, op, result, swapOperands… in createArithmetic()
[all …]