Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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.cpp447 const InstArithmetic::OpKind Op = in genTargetHelperCallFor()
448 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
453 case InstArithmetic::Fdiv: in genTargetHelperCallFor()
454 case InstArithmetic::Frem: in genTargetHelperCallFor()
455 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
456 case InstArithmetic::Srem: in genTargetHelperCallFor()
457 case InstArithmetic::Udiv: in genTargetHelperCallFor()
458 case InstArithmetic::Urem: in genTargetHelperCallFor()
475 case InstArithmetic::Udiv: in genTargetHelperCallFor()
478 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 …]
DIceTargetLoweringX8632.cpp96 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) { in getProducerKind()
101 case InstArithmetic::And: in getProducerKind()
102 case InstArithmetic::Or: in getProducerKind()
500 inline bool canRMW(const InstArithmetic *Arith) { in canRMW()
515 case InstArithmetic::Add: in canRMW()
516 case InstArithmetic::Sub: in canRMW()
517 case InstArithmetic::And: in canRMW()
518 case InstArithmetic::Or: in canRMW()
519 case InstArithmetic::Xor: in canRMW()
521 case InstArithmetic::Shl: in canRMW()
[all …]
DIceTargetLoweringX8664.cpp107 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) { in getProducerKind()
111 case InstArithmetic::And: in getProducerKind()
112 case InstArithmetic::Or: in getProducerKind()
509 inline bool canRMW(const InstArithmetic *Arith) { in canRMW()
524 case InstArithmetic::Add: in canRMW()
525 case InstArithmetic::Sub: in canRMW()
526 case InstArithmetic::And: in canRMW()
527 case InstArithmetic::Or: in canRMW()
528 case InstArithmetic::Xor: in canRMW()
530 case InstArithmetic::Shl: in canRMW()
[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.cpp357 const InstArithmetic::OpKind Op = in genTargetHelperCallFor()
358 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
372 case InstArithmetic::Udiv: in genTargetHelperCallFor()
375 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
378 case InstArithmetic::Urem: in genTargetHelperCallFor()
381 case InstArithmetic::Srem: in genTargetHelperCallFor()
401 if (Op != InstArithmetic::Frem) { in genTargetHelperCallFor()
2242 InstArithmetic::create(Func, InstArithmetic::Add, NewBase, Base, _4)); in getOperandAtIndex()
2287 lowerArithmetic(InstArithmetic::create(Func, InstArithmetic::Add, NewBase, in hiOperand()
2417 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.h315 class InstArithmetic : public InstHighLevel {
316 InstArithmetic() = delete;
317 InstArithmetic(const InstArithmetic &) = delete;
318 InstArithmetic &operator=(const InstArithmetic &) = delete;
328 static InstArithmetic *create(Cfg *Func, OpKind Op, Variable *Dest, in create()
330 return new (Func->allocate<InstArithmetic>()) in create()
331 InstArithmetic(Func, Op, Dest, Source1, Source2); in create()
346 InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1,
DIceInst.cpp271 InstArithmetic::InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, in InstArithmetic() function in Ice::InstArithmetic
278 const char *InstArithmetic::getInstName() const { in getInstName()
285 const char *InstArithmetic::getOpName(OpKind Op) { in getOpName()
286 return Op < InstArithmetic::_num ? InstArithmeticAttributes[Op].DisplayString in getOpName()
290 bool InstArithmetic::isCommutative() const { in isCommutative()
721 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()
DIceCfgNode.cpp1254 InstArithmetic *TopLevelBoolOp = nullptr; in shortCircuit()
1260 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(&Inst)) { in shortCircuit()
1262 FoundOr = (Arith->getOp() == InstArithmetic::OpKind::Or); in shortCircuit()
1263 FoundAnd = (Arith->getOp() == InstArithmetic::OpKind::And); in shortCircuit()
DIceTargetLowering.h359 virtual void lowerArithmetic(const InstArithmetic *Instr) = 0;
459 void scalarizeArithmetic(InstArithmetic::OpKind K, Variable *Dest,
DIceTargetLowering.cpp374 lowerArithmetic(llvm::cast<InstArithmetic>(Instr)); in lower()
910 void TargetLowering::scalarizeArithmetic(InstArithmetic::OpKind Kind, in scalarizeArithmetic()
916 return Context.insert<InstArithmetic>(Kind, Dest, Src0, Src1); in scalarizeArithmetic()
DIceTargetLoweringX8632.h264 void lowerArithmetic(const InstArithmetic *Instr) override;
884 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
891 void lowerArithAndConsumer(const InstArithmetic *Arith, const Inst *Consumer);
DIceTargetLoweringX8664.h260 void lowerArithmetic(const InstArithmetic *Instr) override;
870 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
877 void lowerArithAndConsumer(const InstArithmetic *Arith, const Inst *Consumer);
DIceTargetLoweringARM32.h210 SafeBoolChain lowerInt1Arithmetic(const InstArithmetic *Instr);
211 void lowerInt64Arithmetic(InstArithmetic::OpKind Op, Variable *Dest,
213 void lowerArithmetic(const InstArithmetic *Instr) override;
DIceTargetLoweringMIPS32.h734 void lowerArithmetic(const InstArithmetic *Instr) override;
735 void lowerInt64Arithmetic(const InstArithmetic *Instr, Variable *Dest,
DIceInstX8664.h319 Variable *Beacon, InstArithmetic::OpKind Op,
328 InstArithmetic::OpKind getOp() const { return Op; } in getOp()
336 InstArithmetic::OpKind Op;
338 InstArithmetic::OpKind Op, Variable *Beacon);
DIceInstX8632.h380 Variable *Beacon, InstArithmetic::OpKind Op,
389 InstArithmetic::OpKind getOp() const { return Op; } in getOp()
397 InstArithmetic::OpKind Op;
399 InstArithmetic::OpKind Op, Variable *Beacon);
DIceInstX8632.cpp125 InstArithmetic::OpKind Op, Variable *Beacon) in InstX86FakeRMW()
416 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DOptimizer.cpp266 auto *arithmetic = llvm::cast<Ice::InstArithmetic>(use); in performScalarReplacementOfAggregates()
268 if(arithmetic->getOp() == Ice::InstArithmetic::Add) in performScalarReplacementOfAggregates()
632 auto *arithmetic = llvm::dyn_cast<Ice::InstArithmetic>(use); in isStaticallyIndexedArray()
633 if(arithmetic && arithmetic->getOp() == Ice::InstArithmetic::Add) in isStaticallyIndexedArray()
DSubzeroReactor.cpp1199 static bool isCommutative(Ice::InstArithmetic::OpKind op) in isCommutative()
1203 case Ice::InstArithmetic::Add: in isCommutative()
1204 case Ice::InstArithmetic::Fadd: in isCommutative()
1205 case Ice::InstArithmetic::Mul: in isCommutative()
1206 case Ice::InstArithmetic::Fmul: in isCommutative()
1207 case Ice::InstArithmetic::And: in isCommutative()
1208 case Ice::InstArithmetic::Or: in isCommutative()
1209 case Ice::InstArithmetic::Xor: in isCommutative()
1216 static Value *createArithmetic(Ice::InstArithmetic::OpKind op, Value *lhs, Value *rhs) in createArithmetic()
1223 …Ice::InstArithmetic *arithmetic = Ice::InstArithmetic::create(::function, op, result, swapOperands… in createArithmetic()
[all …]

12