Lines Matching refs:IRContext
49 class IRContext {
90 IRContext(spv_target_env env, MessageConsumer c) in IRContext() function
106 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext() function
122 ~IRContext() { spvContextDestroy(syntax_context_); } in ~IRContext()
728 inline IRContext::Analysis operator|(IRContext::Analysis lhs,
729 IRContext::Analysis rhs) {
730 return static_cast<IRContext::Analysis>(static_cast<int>(lhs) |
734 inline IRContext::Analysis& operator|=(IRContext::Analysis& lhs,
735 IRContext::Analysis rhs) {
736 lhs = static_cast<IRContext::Analysis>(static_cast<int>(lhs) |
741 inline IRContext::Analysis operator<<(IRContext::Analysis a, int shift) {
742 return static_cast<IRContext::Analysis>(static_cast<int>(a) << shift);
745 inline IRContext::Analysis& operator<<=(IRContext::Analysis& a, int shift) {
746 a = static_cast<IRContext::Analysis>(static_cast<int>(a) << shift);
750 std::vector<Instruction*> IRContext::GetConstants() { in GetConstants()
754 std::vector<const Instruction*> IRContext::GetConstants() const { in GetConstants()
758 Module::inst_iterator IRContext::annotation_begin() { in annotation_begin()
762 Module::inst_iterator IRContext::annotation_end() { in annotation_end()
766 IteratorRange<Module::inst_iterator> IRContext::annotations() { in annotations()
770 IteratorRange<Module::const_inst_iterator> IRContext::annotations() const { in annotations()
774 Module::inst_iterator IRContext::capability_begin() { in capability_begin()
778 Module::inst_iterator IRContext::capability_end() { in capability_end()
782 IteratorRange<Module::inst_iterator> IRContext::capabilities() { in capabilities()
786 IteratorRange<Module::const_inst_iterator> IRContext::capabilities() const { in capabilities()
790 Module::inst_iterator IRContext::types_values_begin() { in types_values_begin()
794 Module::inst_iterator IRContext::types_values_end() { in types_values_end()
798 IteratorRange<Module::inst_iterator> IRContext::types_values() { in types_values()
802 IteratorRange<Module::const_inst_iterator> IRContext::types_values() const { in types_values()
806 Module::inst_iterator IRContext::ext_inst_import_begin() { in ext_inst_import_begin()
810 Module::inst_iterator IRContext::ext_inst_import_end() { in ext_inst_import_end()
814 IteratorRange<Module::inst_iterator> IRContext::ext_inst_imports() { in ext_inst_imports()
818 IteratorRange<Module::const_inst_iterator> IRContext::ext_inst_imports() const { in ext_inst_imports()
822 Module::inst_iterator IRContext::debug1_begin() { in debug1_begin()
826 Module::inst_iterator IRContext::debug1_end() { return module()->debug1_end(); } in debug1_end()
828 IteratorRange<Module::inst_iterator> IRContext::debugs1() { in debugs1()
832 IteratorRange<Module::const_inst_iterator> IRContext::debugs1() const { in debugs1()
836 Module::inst_iterator IRContext::debug2_begin() { in debug2_begin()
839 Module::inst_iterator IRContext::debug2_end() { return module()->debug2_end(); } in debug2_end()
841 IteratorRange<Module::inst_iterator> IRContext::debugs2() { in debugs2()
845 IteratorRange<Module::const_inst_iterator> IRContext::debugs2() const { in debugs2()
849 Module::inst_iterator IRContext::debug3_begin() { in debug3_begin()
853 Module::inst_iterator IRContext::debug3_end() { return module()->debug3_end(); } in debug3_end()
855 IteratorRange<Module::inst_iterator> IRContext::debugs3() { in debugs3()
859 IteratorRange<Module::const_inst_iterator> IRContext::debugs3() const { in debugs3()
863 void IRContext::debug_clear() { module_->debug_clear(); } in debug_clear()
865 void IRContext::AddCapability(std::unique_ptr<Instruction>&& c) { in AddCapability()
870 void IRContext::AddExtension(std::unique_ptr<Instruction>&& e) { in AddExtension()
877 void IRContext::AddExtInstImport(std::unique_ptr<Instruction>&& e) { in AddExtInstImport()
882 void IRContext::SetMemoryModel(std::unique_ptr<Instruction>&& m) { in SetMemoryModel()
886 void IRContext::AddEntryPoint(std::unique_ptr<Instruction>&& e) { in AddEntryPoint()
890 void IRContext::AddExecutionMode(std::unique_ptr<Instruction>&& e) { in AddExecutionMode()
894 void IRContext::AddDebug1Inst(std::unique_ptr<Instruction>&& d) { in AddDebug1Inst()
898 void IRContext::AddDebug2Inst(std::unique_ptr<Instruction>&& d) { in AddDebug2Inst()
907 void IRContext::AddDebug3Inst(std::unique_ptr<Instruction>&& d) { in AddDebug3Inst()
911 void IRContext::AddAnnotationInst(std::unique_ptr<Instruction>&& a) { in AddAnnotationInst()
921 void IRContext::AddType(std::unique_ptr<Instruction>&& t) { in AddType()
928 void IRContext::AddGlobalValue(std::unique_ptr<Instruction>&& v) { in AddGlobalValue()
935 void IRContext::AddFunction(std::unique_ptr<Function>&& f) { in AddFunction()
939 void IRContext::AnalyzeDefUse(Instruction* inst) { in AnalyzeDefUse()
945 void IRContext::UpdateDefUse(Instruction* inst) { in UpdateDefUse()
951 void IRContext::BuildIdToNameMap() { in BuildIdToNameMap()
963 IRContext::GetNames(uint32_t id) { in GetNames()