Skip to content

Commit 0be714e

Browse files
AMDGPU/GlobalISel: RegBankLegalize rules for load
Add IDs for bit width that cover multiple LLTs: B32 B64 etc. "Predicate" wrapper class for bool predicate functions used to write pretty rules. Predicates can be combined using &&, || and !. Lowering for splitting and widening loads. Write rules for loads to not change existing mir tests from old regbankselect.
1 parent db1cdae commit 0be714e

File tree

7 files changed

+943
-69
lines changed

7 files changed

+943
-69
lines changed

llvm/lib/Target/AMDGPU/AMDGPURegBankLegalize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
#include "GCNSubtarget.h"
2424
#include "llvm/CodeGen/GlobalISel/CSEInfo.h"
2525
#include "llvm/CodeGen/GlobalISel/CSEMIRBuilder.h"
26+
#include "llvm/CodeGen/GlobalISel/MIPatternMatch.h"
27+
#include "llvm/CodeGen/MachineBasicBlock.h"
2628
#include "llvm/CodeGen/MachineFunctionPass.h"
29+
#include "llvm/CodeGen/MachineInstr.h"
2730
#include "llvm/CodeGen/TargetPassConfig.h"
2831
#include "llvm/InitializePasses.h"
2932

0 commit comments

Comments
 (0)