Home
last modified time | relevance | path

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

/external/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.cpp423 auto *CastInstr = llvm::cast<InstCast>(Instr); in genTargetHelperCallFor()
424 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
438 Context.insert<InstCast>(CastKind, Dst, Op); in genTargetHelperCallFor()
450 case InstCast::Fptosi: in genTargetHelperCallFor()
451 case InstCast::Fptoui: { in genTargetHelperCallFor()
456 const bool DestIsSigned = CastKind == InstCast::Fptosi; in genTargetHelperCallFor()
479 case InstCast::Sitofp: in genTargetHelperCallFor()
480 case InstCast::Uitofp: { in genTargetHelperCallFor()
485 const bool SourceIsSigned = CastKind == InstCast::Sitofp; in genTargetHelperCallFor()
508 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.cpp512 InstCast::OpKind CastKind; in genTargetHelperCallFor()
519 CastKind = InstCast::Zext; in genTargetHelperCallFor()
523 CastKind = InstCast::Sext; in genTargetHelperCallFor()
527 CastKind = InstCast::Zext; in genTargetHelperCallFor()
531 CastKind = InstCast::Sext; in genTargetHelperCallFor()
547 Context.insert<InstCast>(CastKind, Src0_32, Src0); in genTargetHelperCallFor()
557 if (CastKind == InstCast::Zext) { in genTargetHelperCallFor()
565 Context.insert<InstCast>(CastKind, Src1_32, Src1); in genTargetHelperCallFor()
605 auto *CastInstr = llvm::cast<InstCast>(Instr); in genTargetHelperCallFor()
606 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
[all …]
DIceInst.h459 class InstCast : public InstHighLevel {
460 InstCast() = delete;
461 InstCast(const InstCast &) = delete;
462 InstCast &operator=(const InstCast &) = delete;
474 static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, in create()
476 return new (Func->allocate<InstCast>()) in create()
477 InstCast(Func, CastKind, Dest, Source); in create()
485 InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source);
DIceTargetLoweringX86BaseImpl.h188 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) {
192 case InstCast::Trunc:
208 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) {
212 case InstCast::Sext:
214 case InstCast::Zext:
882 } else if (auto *Cast = llvm::dyn_cast<InstCast>(Next)) {
886 NewInst = InstCast::create(Func, Cast->getCastKind(),
2811 void TargetX86Base<TraitsType>::lowerCast(const InstCast *Instr) {
2813 InstCast::OpKind CastKind = Instr->getCastKind();
2820 case InstCast::Sext: {
[all …]
DIceInst.cpp357 InstCast::InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source) in InstCast() function in Ice::InstCast
795 const char *InstCast::getCastName(InstCast::OpKind Kind) { in getCastName()
796 if (Kind < InstCast::OpKind::_num) in getCastName()
802 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.h406 virtual void lowerCast(const InstCast *Instr) = 0;
DIceCfg.cpp1159 auto *Cast = llvm::dyn_cast<InstCast>(Instr); in rematerializeCast()
1160 if (Cast == nullptr || Cast->getCastKind() != InstCast::Bitcast) in rematerializeCast()
DIceTargetLowering.cpp433 lowerCast(llvm::cast<InstCast>(Instr)); in lower()
DIceTargetLoweringMIPS32.h773 void lowerCast(const InstCast *Instr) override;
DIceTargetLoweringARM32.h218 void lowerCast(const InstCast *Instr) override;
DIceTargetLoweringX86Base.h272 void lowerCast(const InstCast *Instr) override;
/external/swiftshader/src/Reactor/
DSubzeroReactor.cpp858 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
871 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
906 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
918 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
994 static Value *createCast(Ice::InstCast::OpKind op, Value *v, Type *destType) in createCast()
1002 Ice::InstCast *cast = Ice::InstCast::create(::function, op, result, v); in createCast()
1010 return createCast(Ice::InstCast::Trunc, v, destType); in createTrunc()
1015 return createCast(Ice::InstCast::Zext, v, destType); in createZExt()
1020 return createCast(Ice::InstCast::Sext, v, destType); in createSExt()
1025 return createCast(Ice::InstCast::Fptosi, v, destType); in createFPToSI()
[all …]