[llvm] [AMDGPU] Implement readcyclecounter for GFX12 (PR #76965)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 07:28:31 PST 2024
================
@@ -4827,6 +4827,48 @@ MachineBasicBlock *SITargetLowering::EmitInstrWithCustomInserter(
MI.eraseFromParent();
return BB;
}
+ case AMDGPU::GET_SHADERCYCLESHILO: {
+ assert(MF->getSubtarget<GCNSubtarget>().hasShaderCyclesHiLoRegisters());
+ MachineRegisterInfo &MRI = MF->getRegInfo();
+ DebugLoc DL = MI.getDebugLoc();
----------------
arsenm wrote:
const ref
https://github.com/llvm/llvm-project/pull/76965
More information about the llvm-commits
mailing list