Home
last modified time | relevance | path

Searched refs:InstCast (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DWasmTranslator.cpp549 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
559 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
569 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
579 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
589 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
599 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
609 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
619 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
629 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
639 InstCast::create(Func, InstCast::Zext, Dest, TmpDest)); in Binop()
[all …]
DIceTargetLoweringMIPS32.cpp421 auto *CastInstr = llvm::cast<InstCast>(Instr); in genTargetHelperCallFor()
422 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
436 Context.insert<InstCast>(CastKind, Dst, Op); in genTargetHelperCallFor()
448 case InstCast::Fptosi: in genTargetHelperCallFor()
449 case InstCast::Fptoui: { in genTargetHelperCallFor()
454 const bool DestIsSigned = CastKind == InstCast::Fptosi; in genTargetHelperCallFor()
477 case InstCast::Sitofp: in genTargetHelperCallFor()
478 case InstCast::Uitofp: { in genTargetHelperCallFor()
483 const bool SourceIsSigned = CastKind == InstCast::Sitofp; in genTargetHelperCallFor()
506 case InstCast::Bitcast: { in genTargetHelperCallFor()
[all …]
DIceConverter.cpp249 return convertCastInstruction(cast<ZExtInst>(Instr), Ice::InstCast::Zext); in convertInstruction()
251 return convertCastInstruction(cast<SExtInst>(Instr), Ice::InstCast::Sext); in convertInstruction()
254 Ice::InstCast::Trunc); in convertInstruction()
257 Ice::InstCast::Fptrunc); in convertInstruction()
260 Ice::InstCast::Fpext); in convertInstruction()
263 Ice::InstCast::Fptosi); in convertInstruction()
266 Ice::InstCast::Fptoui); in convertInstruction()
269 Ice::InstCast::Sitofp); in convertInstruction()
272 Ice::InstCast::Uitofp); in convertInstruction()
275 Ice::InstCast::Bitcast); in convertInstruction()
[all …]
DIceTargetLoweringARM32.cpp502 InstCast::OpKind CastKind; in genTargetHelperCallFor()
509 CastKind = InstCast::Zext; in genTargetHelperCallFor()
513 CastKind = InstCast::Sext; in genTargetHelperCallFor()
517 CastKind = InstCast::Zext; in genTargetHelperCallFor()
521 CastKind = InstCast::Sext; in genTargetHelperCallFor()
537 Context.insert<InstCast>(CastKind, Src0_32, Src0); in genTargetHelperCallFor()
547 if (CastKind == InstCast::Zext) { in genTargetHelperCallFor()
555 Context.insert<InstCast>(CastKind, Src1_32, Src1); in genTargetHelperCallFor()
595 auto *CastInstr = llvm::cast<InstCast>(Instr); in genTargetHelperCallFor()
596 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
[all …]
DIceInst.h471 class InstCast : public InstHighLevel {
472 InstCast() = delete;
473 InstCast(const InstCast &) = delete;
474 InstCast &operator=(const InstCast &) = delete;
486 static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, in create()
488 return new (Func->allocate<InstCast>()) in create()
489 InstCast(Func, CastKind, Dest, Source); in create()
497 InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source);
DIceTargetLoweringX8632.cpp109 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) { in getProducerKind()
113 case InstCast::Trunc: in getProducerKind()
128 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) { in getConsumerKind()
132 case InstCast::Sext: in getConsumerKind()
134 case InstCast::Zext: in getConsumerKind()
737 } else if (auto *Cast = llvm::dyn_cast<InstCast>(Next)) { in doLoadOpt()
741 NewInst = InstCast::create(Func, Cast->getCastKind(), in doLoadOpt()
2596 void TargetX8632::lowerCast(const InstCast *Instr) { in lowerCast()
2598 InstCast::OpKind CastKind = Instr->getCastKind(); in lowerCast()
2605 case InstCast::Sext: { in lowerCast()
[all …]
DIceTargetLoweringX8664.cpp118 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) { in getProducerKind()
122 case InstCast::Trunc: in getProducerKind()
137 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) { in getConsumerKind()
141 case InstCast::Sext: in getConsumerKind()
143 case InstCast::Zext: in getConsumerKind()
747 } else if (auto *Cast = llvm::dyn_cast<InstCast>(Next)) { in doLoadOpt()
751 NewInst = InstCast::create(Func, Cast->getCastKind(), in doLoadOpt()
2380 void TargetX8664::lowerCast(const InstCast *Instr) { in lowerCast()
2382 InstCast::OpKind CastKind = Instr->getCastKind(); in lowerCast()
2389 case InstCast::Sext: { in lowerCast()
[all …]
DIceInst.cpp347 InstCast::InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source) in InstCast() function in Ice::InstCast
778 const char *InstCast::getCastName(InstCast::OpKind Kind) { in getCastName()
779 if (Kind < InstCast::OpKind::_num) in getCastName()
785 void InstCast::dump(const Cfg *Func) const { in dump()
DIceInstrumentation.h63 virtual void instrumentCast(LoweringContext &, class InstCast *) {} in instrumentCast() argument
DPNaClTranslator.cpp1916 Ice::InstCast::OpKind &CastKind) { in convertCastOpToIceOp()
1924 CastKind = Ice::InstCast::Bitcast; in convertCastOpToIceOp()
1928 CastKind = Ice::InstCast::Trunc; in convertCastOpToIceOp()
1932 CastKind = Ice::InstCast::Zext; in convertCastOpToIceOp()
1936 CastKind = Ice::InstCast::Sext; in convertCastOpToIceOp()
1940 CastKind = Ice::InstCast::Fptoui; in convertCastOpToIceOp()
1944 CastKind = Ice::InstCast::Fptosi; in convertCastOpToIceOp()
1948 CastKind = Ice::InstCast::Uitofp; in convertCastOpToIceOp()
1952 CastKind = Ice::InstCast::Sitofp; in convertCastOpToIceOp()
1956 CastKind = Ice::InstCast::Fptrunc; in convertCastOpToIceOp()
[all …]
DIceInstrumentation.cpp76 instrumentCast(Context, llvm::cast<InstCast>(Instr)); in instrumentInst()
DIceTargetLowering.h364 virtual void lowerCast(const InstCast *Instr) = 0;
DIceCfg.cpp1062 auto *Cast = llvm::dyn_cast<InstCast>(Instr); in rematerializeCast()
1063 if (Cast == nullptr || Cast->getCastKind() != InstCast::Bitcast) in rematerializeCast()
DIceTargetLowering.cpp389 lowerCast(llvm::cast<InstCast>(Instr)); in lower()
DIceTargetLoweringMIPS32.h741 void lowerCast(const InstCast *Instr) override;
DIceTargetLoweringX8632.h269 void lowerCast(const InstCast *Instr) override;
DIceTargetLoweringX8664.h265 void lowerCast(const InstCast *Instr) override;
DIceTargetLoweringARM32.h217 void lowerCast(const InstCast *Instr) override;
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DSubzeroReactor.cpp180 Ice::InstCast *cast = Ice::InstCast::create(function, Ice::InstCast::Trunc, to, from); in createTruncate()
1416 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
1431 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
1481 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
1494 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
1638 static Value *createCast(Ice::InstCast::OpKind op, Value *v, Type *destType) in createCast()
1646 Ice::InstCast *cast = Ice::InstCast::create(::function, op, result, v); in createCast()
1655 return createCast(Ice::InstCast::Trunc, v, destType); in createTrunc()
1661 return createCast(Ice::InstCast::Zext, v, destType); in createZExt()
1667 return createCast(Ice::InstCast::Sext, v, destType); in createSExt()
[all …]