LLVM  9.0.0svn
InstructionSelect.h
Go to the documentation of this file.
1 //== llvm/CodeGen/GlobalISel/InstructionSelect.h -----------------*- C++ -*-==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 /// \file This file describes the interface of the MachineFunctionPass
9 /// responsible for selecting (possibly generic) machine instructions to
10 /// target-specific instructions.
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_CODEGEN_GLOBALISEL_INSTRUCTIONSELECT_H
14 #define LLVM_CODEGEN_GLOBALISEL_INSTRUCTIONSELECT_H
15 
18 
19 namespace llvm {
20 /// This pass is responsible for selecting generic machine instructions to
21 /// target-specific instructions. It relies on the InstructionSelector provided
22 /// by the target.
23 /// Selection is done by examining blocks in post-order, and instructions in
24 /// reverse order.
25 ///
26 /// \post for all inst in MF: not isPreISelGenericOpcode(inst.opcode)
28 public:
29  static char ID;
30  StringRef getPassName() const override { return "InstructionSelect"; }
31 
32  void getAnalysisUsage(AnalysisUsage &AU) const override;
33 
39  }
40 
44  }
45 
47 
48  bool runOnMachineFunction(MachineFunction &MF) override;
49 };
50 } // End namespace llvm.
51 
52 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
MachineFunctionProperties getSetProperties() const override
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
MachineFunctionProperties getRequiredProperties() const override
Represent the analysis usage information of a pass.
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
This pass is responsible for selecting generic machine instructions to target-specific instructions...
MachineFunctionProperties & set(Property P)
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48
Properties which a MachineFunction may have at a given point in time.