Lines Matching refs:IRContext
49 class IRContext {
92 IRContext(spv_target_env env, MessageConsumer c) in IRContext() function
110 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext() function
128 ~IRContext() { spvContextDestroy(syntax_context_); } in ~IRContext()
803 inline IRContext::Analysis operator|(IRContext::Analysis lhs,
804 IRContext::Analysis rhs) {
805 return static_cast<IRContext::Analysis>(static_cast<int>(lhs) |
809 inline IRContext::Analysis& operator|=(IRContext::Analysis& lhs,
810 IRContext::Analysis rhs) {
811 lhs = static_cast<IRContext::Analysis>(static_cast<int>(lhs) |
816 inline IRContext::Analysis operator<<(IRContext::Analysis a, int shift) {
817 return static_cast<IRContext::Analysis>(static_cast<int>(a) << shift);
820 inline IRContext::Analysis& operator<<=(IRContext::Analysis& a, int shift) {
821 a = static_cast<IRContext::Analysis>(static_cast<int>(a) << shift);
825 std::vector<Instruction*> IRContext::GetConstants() { in GetConstants()
829 std::vector<const Instruction*> IRContext::GetConstants() const { in GetConstants()
833 Module::inst_iterator IRContext::annotation_begin() { in annotation_begin()
837 Module::inst_iterator IRContext::annotation_end() { in annotation_end()
841 IteratorRange<Module::inst_iterator> IRContext::annotations() { in annotations()
845 IteratorRange<Module::const_inst_iterator> IRContext::annotations() const { in annotations()
849 Module::inst_iterator IRContext::capability_begin() { in capability_begin()
853 Module::inst_iterator IRContext::capability_end() { in capability_end()
857 IteratorRange<Module::inst_iterator> IRContext::capabilities() { in capabilities()
861 IteratorRange<Module::const_inst_iterator> IRContext::capabilities() const { in capabilities()
865 Module::inst_iterator IRContext::types_values_begin() { in types_values_begin()
869 Module::inst_iterator IRContext::types_values_end() { in types_values_end()
873 IteratorRange<Module::inst_iterator> IRContext::types_values() { in types_values()
877 IteratorRange<Module::const_inst_iterator> IRContext::types_values() const { in types_values()
881 Module::inst_iterator IRContext::ext_inst_import_begin() { in ext_inst_import_begin()
885 Module::inst_iterator IRContext::ext_inst_import_end() { in ext_inst_import_end()
889 IteratorRange<Module::inst_iterator> IRContext::ext_inst_imports() { in ext_inst_imports()
893 IteratorRange<Module::const_inst_iterator> IRContext::ext_inst_imports() const { in ext_inst_imports()
897 Module::inst_iterator IRContext::debug1_begin() { in debug1_begin()
901 Module::inst_iterator IRContext::debug1_end() { return module()->debug1_end(); } in debug1_end()
903 IteratorRange<Module::inst_iterator> IRContext::debugs1() { in debugs1()
907 IteratorRange<Module::const_inst_iterator> IRContext::debugs1() const { in debugs1()
911 Module::inst_iterator IRContext::debug2_begin() { in debug2_begin()
914 Module::inst_iterator IRContext::debug2_end() { return module()->debug2_end(); } in debug2_end()
916 IteratorRange<Module::inst_iterator> IRContext::debugs2() { in debugs2()
920 IteratorRange<Module::const_inst_iterator> IRContext::debugs2() const { in debugs2()
924 Module::inst_iterator IRContext::debug3_begin() { in debug3_begin()
928 Module::inst_iterator IRContext::debug3_end() { return module()->debug3_end(); } in debug3_end()
930 IteratorRange<Module::inst_iterator> IRContext::debugs3() { in debugs3()
934 IteratorRange<Module::const_inst_iterator> IRContext::debugs3() const { in debugs3()
938 Module::inst_iterator IRContext::ext_inst_debuginfo_begin() { in ext_inst_debuginfo_begin()
942 Module::inst_iterator IRContext::ext_inst_debuginfo_end() { in ext_inst_debuginfo_end()
946 IteratorRange<Module::inst_iterator> IRContext::ext_inst_debuginfo() { in ext_inst_debuginfo()
950 IteratorRange<Module::const_inst_iterator> IRContext::ext_inst_debuginfo() in ext_inst_debuginfo()
955 void IRContext::AddCapability(SpvCapability capability) { in AddCapability()
964 void IRContext::AddCapability(std::unique_ptr<Instruction>&& c) { in AddCapability()
976 void IRContext::AddExtension(const std::string& ext_name) { in AddExtension()
987 void IRContext::AddExtension(std::unique_ptr<Instruction>&& e) { in AddExtension()
997 void IRContext::AddExtInstImport(const std::string& name) { in AddExtInstImport()
1008 void IRContext::AddExtInstImport(std::unique_ptr<Instruction>&& e) { in AddExtInstImport()
1019 void IRContext::SetMemoryModel(std::unique_ptr<Instruction>&& m) { in SetMemoryModel()
1023 void IRContext::AddEntryPoint(std::unique_ptr<Instruction>&& e) { in AddEntryPoint()
1027 void IRContext::AddExecutionMode(std::unique_ptr<Instruction>&& e) { in AddExecutionMode()
1031 void IRContext::AddDebug1Inst(std::unique_ptr<Instruction>&& d) { in AddDebug1Inst()
1035 void IRContext::AddDebug2Inst(std::unique_ptr<Instruction>&& d) { in AddDebug2Inst()
1044 void IRContext::AddDebug3Inst(std::unique_ptr<Instruction>&& d) { in AddDebug3Inst()
1048 void IRContext::AddExtInstDebugInfo(std::unique_ptr<Instruction>&& d) { in AddExtInstDebugInfo()
1052 void IRContext::AddAnnotationInst(std::unique_ptr<Instruction>&& a) { in AddAnnotationInst()
1062 void IRContext::AddType(std::unique_ptr<Instruction>&& t) { in AddType()
1069 void IRContext::AddGlobalValue(std::unique_ptr<Instruction>&& v) { in AddGlobalValue()
1076 void IRContext::AddFunction(std::unique_ptr<Function>&& f) { in AddFunction()
1080 void IRContext::AnalyzeDefUse(Instruction* inst) { in AnalyzeDefUse()
1086 void IRContext::UpdateDefUse(Instruction* inst) { in UpdateDefUse()
1092 void IRContext::BuildIdToNameMap() { in BuildIdToNameMap()
1104 IRContext::GetNames(uint32_t id) { in GetNames()