/external/swiftshader/third_party/subzero/src/ |
D | WasmTranslator.cpp | 408 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 …]
|
D | IceTargetLoweringARM32.cpp | 456 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 …]
|
D | IceConverter.cpp | 277 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 …]
|
D | IceTargetLoweringX86BaseImpl.h | 188 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 …]
|
D | IceASanInstrumentation.cpp | 228 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()
|
D | IceTargetLoweringMIPS32.cpp | 359 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 …]
|
D | PNaClTranslator.cpp | 1614 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 …]
|
D | IceInst.h | 317 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,
|
D | IceInst.cpp | 273 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()
|
D | IceInstrumentation.h | 59 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) { in instrumentArithmetic() argument
|
D | IceCfg.cpp | 485 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()
|
D | IceInstrumentation.cpp | 67 instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr)); in instrumentInst()
|
D | IceTargetLowering.h | 394 virtual void lowerArithmetic(const InstArithmetic *Instr) = 0; 494 void scalarizeArithmetic(InstArithmetic::OpKind K, Variable *Dest,
|
D | IceCfgNode.cpp | 1468 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()
|
D | IceTargetLowering.cpp | 405 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()
|
D | IceTargetLoweringARM32.h | 211 SafeBoolChain lowerInt1Arithmetic(const InstArithmetic *Instr); 212 void lowerInt64Arithmetic(InstArithmetic::OpKind Op, Variable *Dest, 214 void lowerArithmetic(const InstArithmetic *Instr) override;
|
D | IceTargetLoweringMIPS32.h | 766 void lowerArithmetic(const InstArithmetic *Instr) override; 767 void lowerInt64Arithmetic(const InstArithmetic *Instr, Variable *Dest,
|
D | IceTargetLoweringX86Base.h | 267 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);
|
D | IceInstX86Base.h | 263 Variable *Beacon, InstArithmetic::OpKind Op, 272 InstArithmetic::OpKind getOp() const { return Op; } in getOp() 282 InstArithmetic::OpKind Op; 284 InstArithmetic::OpKind Op, Variable *Beacon);
|
D | IceInstX86BaseImpl.h | 52 InstArithmetic::OpKind Op, in InstX86FakeRMW() 415 Str << "rmw " << InstArithmetic::getOpName(getOp()) << " " << Ty << " *"; in dump()
|
/external/swiftshader/src/Reactor/ |
D | Optimizer.cpp | 266 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()
|
D | SubzeroReactor.cpp | 1200 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 …]
|