aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h')
-rw-r--r--contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h b/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
index 1af46e0a9e76..4a72621ec61e 100644
--- a/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
+++ b/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/InstructionSelect.h
@@ -17,6 +17,10 @@
#include "llvm/CodeGen/MachineFunctionPass.h"
namespace llvm {
+
+class BlockFrequencyInfo;
+class ProfileSummaryInfo;
+
/// This pass is responsible for selecting generic machine instructions to
/// target-specific instructions. It relies on the InstructionSelector provided
/// by the target.
@@ -43,9 +47,16 @@ public:
MachineFunctionProperties::Property::Selected);
}
+ InstructionSelect(CodeGenOpt::Level OL);
InstructionSelect();
bool runOnMachineFunction(MachineFunction &MF) override;
+
+protected:
+ BlockFrequencyInfo *BFI = nullptr;
+ ProfileSummaryInfo *PSI = nullptr;
+
+ CodeGenOpt::Level OptLevel = CodeGenOpt::None;
};
} // End namespace llvm.