/external/swiftshader/src/Reactor/ |
D | Optimizer.cpp | 27 void run(Ice::Cfg *function); 30 void analyzeUses(Ice::Cfg *function); 36 void replace(Ice::Inst *instruction, Ice::Operand *newValue); 37 void deleteInstruction(Ice::Inst *instruction); 38 bool isDead(Ice::Inst *instruction); 40 static const Ice::InstIntrinsicCall *asLoadSubVector(const Ice::Inst *instruction); 41 static const Ice::InstIntrinsicCall *asStoreSubVector(const Ice::Inst *instruction); 42 static bool isLoad(const Ice::Inst &instruction); 43 static bool isStore(const Ice::Inst &instruction); 44 static Ice::Operand *storeAddress(const Ice::Inst *instruction); [all …]
|
D | SubzeroReactor.cpp | 58 Ice::GlobalContext *context = nullptr; 59 Ice::Cfg *function = nullptr; 60 Ice::CfgNode *basicBlock = nullptr; 61 Ice::CfgLocalAllocatorScope *allocator = nullptr; 66 Ice::ELFFileStreamer *elfFile = nullptr; 67 Ice::Fdstream *out = nullptr; 144 Type_v2i32 = Ice::IceType_v4i32 | EmulatedV2, 145 Type_v4i16 = Ice::IceType_v8i16 | EmulatedV4, 146 Type_v2i16 = Ice::IceType_v8i16 | EmulatedV2, 147 Type_v8i8 = Ice::IceType_v16i8 | EmulatedV8, [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceConverter.cpp | 71 explicit LLVM2ICEConverter(Ice::Converter &Converter) in LLVM2ICEConverter() 75 Ice::Converter &getConverter() const { return Converter; } in getConverter() 78 Ice::Converter &Converter; 79 Ice::GlobalContext *Ctx; 80 const Ice::TypeConverter TypeConverter; 95 explicit LLVM2ICEFunctionConverter(Ice::Converter &Converter) in LLVM2ICEFunctionConverter() 99 Func = Ice::Cfg::create(Ctx, Converter.getNextSequenceNumber()); in convertFunction() 101 Ice::CfgLocalAllocatorScope _(Func.get()); in convertFunction() 106 Ctx->getGlobalString(Ice::mangleName(F->getName()))); in convertFunction() 109 Ice::TimerMarker T(Ice::TimerStack::TT_llvmConvert, Func.get()); in convertFunction() [all …]
|
D | PNaClTranslator.cpp | 79 void dump(Ice::Ostream &Stream) const; 82 void setAsSimpleType(Ice::Type Ty) { in setAsSimpleType() 97 Ice::FuncSigType Signature; 103 Ice::Ostream &operator<<(Ice::Ostream &Stream, const ExtendedType &Ty) { in operator <<() 104 if (!Ice::BuildDefs::dump()) in operator <<() 110 Ice::Ostream &operator<<(Ice::Ostream &Stream, ExtendedType::TypeKind Kind) { in operator <<() 111 if (!Ice::BuildDefs::dump()) in operator <<() 135 Ice::Type getType() const { return Signature.getReturnType(); } in getType() 149 const Ice::FuncSigType &getSignature() const { return Signature; } in getSignature() 150 void setReturnType(Ice::Type ReturnType) { in setReturnType() [all …]
|
D | IceClFlags.def | 18 namespace Ice { 42 X(OptLevel, Ice::OptLevel, release_opt_flag, cl::desc("Optimization level"), \ 43 cl::init(Ice::Opt_m1), cl::value_desc("level"), \ 44 cl::values(clEnumValN(Ice::Opt_m1, "Om1", "-1"), \ 45 clEnumValN(Ice::Opt_m1, "O-1", "-1"), \ 46 clEnumValN(Ice::Opt_0, "O0", "0"), \ 47 clEnumValN(Ice::Opt_1, "O1", "1"), \ 48 clEnumValN(Ice::Opt_2, "O2", "2") CLENUMVALEND)) \ 54 X(TargetArch, Ice::TargetArch, release_opt_flag, "target", \ 55 cl::desc("Target architecture:"), cl::init(Ice::Target_X8632), \ [all …]
|
D | IceGlobalInits.cpp | 28 void dumpLinkage(Ice::Ostream &Stream, in dumpLinkage() 30 if (!Ice::BuildDefs::dump()) in dumpLinkage() 48 void dumpCallingConv(Ice::Ostream &, llvm::CallingConv::ID CallingConv) { in dumpCallingConv() 49 if (!Ice::BuildDefs::dump()) in dumpCallingConv() 61 namespace Ice { namespace 115 if (!Ice::BuildDefs::dump()) in dumpType() 121 if (!Ice::BuildDefs::dump()) in dump() 140 if (!Ice::BuildDefs::dump()) in dumpType() 160 if (!Ice::BuildDefs::dump()) in dump() 191 if (!Ice::BuildDefs::dump()) in dumpType() [all …]
|
D | IceClFlags.cpp | 98 struct cl_type_traits<T, ::Ice::cl_detail::dev_list_flag> { 102 template <typename T> struct cl_type_traits<T, ::Ice::cl_detail::dev_opt_flag> { 107 struct cl_type_traits<T, ::Ice::cl_detail::release_opt_flag> { 112 cl_type_traits<Type, Ice::cl_detail::ClType>::cl_type Name##Obj(__VA_ARGS__); 125 namespace Ice { namespace 182 template <> struct ToSetterParam<cl::list<Ice::VerboseItem>> { 183 using ReturnType = Ice::VerboseMask; 196 ToSetterParam<cl::list<Ice::VerboseItem>>::ReturnType 197 toSetterParam(const cl::list<Ice::VerboseItem> &Param) { in toSetterParam() 198 Ice::VerboseMask VMask = Ice::IceV_None; in toSetterParam() [all …]
|
D | IceTargetLoweringX8632.cpp | 21 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) { in createTargetLowering() 22 return ::Ice::X8632::TargetX8632::create(Func); in createTargetLowering() 25 std::unique_ptr<::Ice::TargetDataLowering> 26 createTargetDataLowering(::Ice::GlobalContext *Ctx) { in createTargetDataLowering() 27 return ::Ice::X8632::TargetDataX86<::Ice::X8632::TargetX8632Traits>::create( in createTargetDataLowering() 31 std::unique_ptr<::Ice::TargetHeaderLowering> 32 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) { in createTargetHeaderLowering() 33 return ::Ice::X8632::TargetHeaderX86::create(Ctx); in createTargetHeaderLowering() 36 void staticInit(::Ice::GlobalContext *Ctx) { in staticInit() 37 ::Ice::X8632::TargetX8632::staticInit(Ctx); in staticInit() [all …]
|
D | IceTargetLoweringX8632Traits.h | 31 namespace Ice { 34 using namespace ::Ice::X86; 51 static constexpr ::Ice::Assembler::AssemblerKind AsmKind = 52 ::Ice::Assembler::Asm_X8632; 58 static constexpr ::Ice::RegX8632::GPRRegister Last8BitGPR = 59 ::Ice::RegX8632::GPRRegister::Encoded_Reg_ebx; 63 using GPRRegister = ::Ice::RegX8632::GPRRegister; 64 using ByteRegister = ::Ice::RegX8632::ByteRegister; 65 using XmmRegister = ::Ice::RegX8632::XmmRegister; 66 using X87STRegister = ::Ice::RegX8632::X87STRegister; [all …]
|
D | IceTargetLoweringX8664Traits.h | 32 namespace Ice { 35 using namespace ::Ice::X86; 52 static constexpr ::Ice::Assembler::AssemblerKind AsmKind = 53 ::Ice::Assembler::Asm_X8664; 59 static constexpr ::Ice::RegX8664::GPRRegister Last8BitGPR = 60 ::Ice::RegX8664::GPRRegister::Encoded_Reg_r15d; 64 using GPRRegister = ::Ice::RegX8664::GPRRegister; 65 using ByteRegister = ::Ice::RegX8664::ByteRegister; 66 using XmmRegister = ::Ice::RegX8664::XmmRegister; 68 using Cond = ::Ice::CondX8664; [all …]
|
D | IceTargetLoweringX8632.h | 29 namespace Ice { 32 class TargetX8632 final : public ::Ice::X8632::TargetX86Base<X8632::Traits> { 40 static std::unique_ptr<::Ice::TargetLowering> create(Cfg *Func) { in create() 44 std::unique_ptr<::Ice::Assembler> createAssembler() const override { in createAssembler()
|
D | IceTargetLoweringX8664.cpp | 21 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) { in createTargetLowering() 22 return ::Ice::X8664::TargetX8664::create(Func); in createTargetLowering() 25 std::unique_ptr<::Ice::TargetDataLowering> 26 createTargetDataLowering(::Ice::GlobalContext *Ctx) { in createTargetDataLowering() 27 return ::Ice::X8664::TargetDataX86<::Ice::X8664::TargetX8664Traits>::create( in createTargetDataLowering() 31 std::unique_ptr<::Ice::TargetHeaderLowering> 32 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) { in createTargetHeaderLowering() 33 return ::Ice::X8664::TargetHeaderX86::create(Ctx); in createTargetHeaderLowering() 36 void staticInit(::Ice::GlobalContext *Ctx) { in staticInit() 37 ::Ice::X8664::TargetX8664::staticInit(Ctx); in staticInit() [all …]
|
D | main.cpp | 42 if (Ice::BuildDefs::browser()) { in main() 44 return Ice::BrowserCompileServer().runAndReturnErrorCode(); in main() 46 return Ice::CLCompileServer(argc, argv).runAndReturnErrorCode(); in main()
|
D | IceCompileServer.cpp | 47 namespace Ice { namespace 194 Ice::LinuxMallocProfiling _(Flags.getNumTranslationThreads(), Ls.get()); in run() 202 return transferErrorCode(getReturnValue(Ice::EC_Args)); in run() 209 return transferErrorCode(getReturnValue(Ice::EC_Args)); in run() 223 return transferErrorCode(getReturnValue(Ice::EC_Args)); in run() 242 return transferErrorCode(getReturnValue(Ice::EC_Bitcode)); in run() 247 return transferErrorCode(getReturnValue(Ice::EC_None)); in run()
|
D | IceInstX8664.cpp | 30 namespace Ice { namespace 93 const ::Ice::X8664::TargetX8664 *Target) { in getRematerializableOffset() 109 static_cast<const ::Ice::X8664::TargetX8664 *>(Func->getTarget()); in emit() 196 static_cast<const ::Ice::X8664::TargetX8664 *>(Func->getTarget()); in dump() 250 const Ice::TargetLowering *TargetLowering, bool IsLeaAddr) const { in toAsmAddress() 253 static_cast<const ::Ice::X8664::TargetX8664 *>(TargetLowering); in toAsmAddress() 319 const ::Ice::TargetLowering *Target = Func->getTarget(); in toAsmAddress() 331 const ::Ice::TargetLowering *Target = Func->getTarget(); in emit()
|
D | IceInstX8632.cpp | 29 namespace Ice { namespace 103 const Ice::X8632::TargetX8632 *Target) { in getRematerializableOffset() 137 static_cast<const ::Ice::X8632::TargetX8632 *>(Func->getTarget()); in emit() 200 static_cast<const ::Ice::X8632::TargetX8632 *>(Func->getTarget()); in dump() 263 const Ice::TargetLowering *TargetLowering, bool /*IsLeaAddr*/) const { in toAsmAddress() 265 static_cast<const ::Ice::X8632::TargetX8632 *>(TargetLowering); in toAsmAddress() 312 const ::Ice::TargetLowering *Target = Func->getTarget(); in toAsmAddress() 324 const ::Ice::TargetLowering *Target = Func->getTarget(); in emit()
|
D | IceCompiler.cpp | 49 namespace Ice { namespace 65 void Compiler::run(const Ice::ClFlags &Flags, GlobalContext &Ctx, in run() 77 TimerMarker T(Ice::TimerStack::TT_szmain, &Ctx); in run() 127 TimerMarker T1(Ice::TimerStack::TT_parse, &Ctx); in run() 169 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx); in run()
|
D | IceTargetLoweringX8664.h | 29 namespace Ice { 40 static std::unique_ptr<::Ice::TargetLowering> create(Cfg *Func) { in create() 44 std::unique_ptr<::Ice::Assembler> createAssembler() const override { in createAssembler()
|
D | IceStringPool.h | 27 namespace Ice { 169 template <typename T> struct hash<Ice::StringID<T>> { 170 size_t operator()(const Ice::StringID<T> &Key) const { 173 return hash<Ice::StringPool::IDType>()(Key.getID());
|
D | IceTargetLowering.cpp | 53 std::unique_ptr<::Ice::TargetLowering> \ 54 createTargetLowering(::Ice::Cfg *Func); \ 55 std::unique_ptr<::Ice::TargetDataLowering> \ 56 createTargetDataLowering(::Ice::GlobalContext *Ctx); \ 57 std::unique_ptr<::Ice::TargetHeaderLowering> \ 58 createTargetHeaderLowering(::Ice::GlobalContext *Ctx); \ 59 void staticInit(::Ice::GlobalContext *Ctx); \ 60 bool shouldBePooled(const ::Ice::Constant *C); \ 61 ::Ice::Type getPointerType(); \ 66 namespace Ice { namespace [all …]
|
D | IceInst.h | 35 namespace Ice { 1185 struct ilist_traits<Ice::Inst> : public ilist_default_traits<Ice::Inst> { 1186 Ice::Inst *createSentinel() const { 1187 return static_cast<Ice::Inst *>(&Sentinel); 1189 static void destroySentinel(Ice::Inst *) {} 1190 Ice::Inst *provideInitialHead() const { return createSentinel(); } 1191 Ice::Inst *ensureHead(Ice::Inst *) const { return createSentinel(); } 1192 static void noteHead(Ice::Inst *, Ice::Inst *) {} 1193 void deleteNode(Ice::Inst *) {} 1196 mutable ilist_half_node<Ice::Inst> Sentinel; [all …]
|
D | IceClFlags.h | 53 namespace Ice { 67 template <> struct cl_type_traits<Ice::VerboseItem, cl_detail::dev_list_flag> { 68 using storage_type = Ice::VerboseMask;
|
D | LinuxMallocProfiling.cpp | 65 namespace Ice { namespace 100 namespace Ice { namespace
|
D | IceTranslator.h | 28 namespace Ice { 88 std::unique_ptr<Ice::Cfg> Func;
|
/external/swiftshader/third_party/subzero/unittest/ |
D | BitcodeMunge.cpp | 23 Ice::ClFlags::Flags.setAllowErrorRecovery(true); in resetMungeFlags() 24 Ice::ClFlags::Flags.setDisableTranslation(false); in resetMungeFlags() 25 Ice::ClFlags::Flags.setGenerateUnitTestMessages(true); in resetMungeFlags() 26 Ice::ClFlags::Flags.setOptLevel(Ice::Opt_m1); in resetMungeFlags() 27 Ice::ClFlags::Flags.setOutFileType(Ice::FT_Iasm); in resetMungeFlags() 28 Ice::ClFlags::Flags.setTargetArch(Ice::Target_X8632); in resetMungeFlags() 29 Ice::ClFlags::Flags.setNumTranslationThreads(0); in resetMungeFlags() 30 Ice::ClFlags::Flags.setParseParallel(false); in resetMungeFlags() 38 Ice::GlobalContext Ctx(DumpStream, DumpStream, DumpStream, nullptr); in runTest() 40 Ice::PNaClTranslator Translator(&Ctx); in runTest() [all …]
|