[llvm] [SPIR-V] Fix emission of debug and annotation instructions and add SPV_EXT_optnone SPIR-V extension (PR #118402)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 05:18:54 PST 2024
================
@@ -1606,6 +1610,28 @@ static void addDecorations(const Module &M, const SPIRVInstrInfo &TII,
}
}
+static void addMBBNames(const Module &M, const SPIRVInstrInfo &TII,
+ MachineModuleInfo *MMI, const SPIRVSubtarget &ST,
+ SPIRV::ModuleAnalysisInfo &MAI) {
+ for (auto F = M.begin(), E = M.end(); F != E; ++F) {
+ MachineFunction *MF = MMI->getMachineFunction(*F);
+ if (!MF)
+ continue;
+ MachineRegisterInfo &MRI = MF->getRegInfo();
+ //MachineIRBuilder MIRBuilder(*MF);
----------------
MrSidims wrote:
typo
https://github.com/llvm/llvm-project/pull/118402
More information about the llvm-commits
mailing list