Skip to content

Commit c85b6bf

Browse files
[AMDGPU] Forward-declare MachineIRBuilder (NFC)
AMDGPULegalizerInfo.h needs MachineIRBuilder but relies on a forward declaration of MachineIRBuilder in LegalizerInfo.h. This patch adds a forward declaration right in AMDGPULegalizerInfo.h. While we are at it, this patch removes the one in LegalizerInfo.h, where it is unnecessary.
1 parent 772134e commit c85b6bf

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ extern cl::opt<bool> DisableGISelLegalityCheck;
3737

3838
class LegalizerHelper;
3939
class MachineInstr;
40-
class MachineIRBuilder;
4140
class MachineRegisterInfo;
4241
class MCInstrInfo;
4342
class GISelChangeObserver;

llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace llvm {
2323
class GCNTargetMachine;
2424
class LLVMContext;
2525
class GCNSubtarget;
26+
class MachineIRBuilder;
2627

2728
namespace AMDGPU {
2829
struct ImageDimIntrinsicInfo;

0 commit comments

Comments
 (0)