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.h469 class InstCast : public InstHighLevel {
470 InstCast() = delete;
471 InstCast(const InstCast &) = delete;
472 InstCast &operator=(const InstCast &) = delete;
484 static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, in create()
486 return new (Func->allocate<InstCast>()) in create()
487 InstCast(Func, CastKind, Dest, Source); in create()
495 InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source);
DIceTargetLoweringX86BaseImpl.h201 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) {
205 case InstCast::Trunc:
221 if (auto *Cast = llvm::dyn_cast<InstCast>(Instr)) {
225 case InstCast::Sext:
227 case InstCast::Zext:
895 } else if (auto *Cast = llvm::dyn_cast<InstCast>(Next)) {
899 NewInst = InstCast::create(Func, Cast->getCastKind(),
2880 void TargetX86Base<TraitsType>::lowerCast(const InstCast *Instr) {
2882 InstCast::OpKind CastKind = Instr->getCastKind();
2889 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.cpp185 Ice::InstCast *cast = Ice::InstCast::create(function, Ice::InstCast::Bitcast, result, v); in createUnconstCast()
1312 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
1326 …auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, result, vector.loadValue(… in createLoad()
1379 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
1391 auto bitcast = Ice::InstCast::create(::function, Ice::InstCast::Bitcast, vector, value); in createStore()
1538 static Value *createCast(Ice::InstCast::OpKind op, Value *v, Type *destType) in createCast()
1546 Ice::InstCast *cast = Ice::InstCast::create(::function, op, result, v); in createCast()
1555 return createCast(Ice::InstCast::Trunc, v, destType); in createTrunc()
1561 return createCast(Ice::InstCast::Zext, v, destType); in createZExt()
1567 return createCast(Ice::InstCast::Sext, v, destType); in createSExt()
[all …]