mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
[FastISel] Provide the option to skip target-independent instruction selection. NFC.
This allows the target to disable target-independent instruction selection and jump directly into the target-dependent instruction selection code. This can be beneficial for targets, such as AArch64, which could emit much better code, but never got a chance to do so, because the target-independent instruction selector was able to find an instruction sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -202,6 +202,7 @@ protected:
|
||||
const TargetLowering &TLI;
|
||||
const TargetRegisterInfo &TRI;
|
||||
const TargetLibraryInfo *LibInfo;
|
||||
bool SkipTargetIndependentISel;
|
||||
|
||||
/// The position of the last instruction for materializing constants for use
|
||||
/// in the current block. It resets to EmitStartPt when it makes sense (for
|
||||
@@ -307,8 +308,9 @@ public:
|
||||
virtual ~FastISel();
|
||||
|
||||
protected:
|
||||
explicit FastISel(FunctionLoweringInfo &funcInfo,
|
||||
const TargetLibraryInfo *libInfo);
|
||||
explicit FastISel(FunctionLoweringInfo &FuncInfo,
|
||||
const TargetLibraryInfo *LibInfo,
|
||||
bool SkipTargetIndependentISel = false);
|
||||
|
||||
/// This method is called by target-independent code when the normal FastISel
|
||||
/// process fails to select an instruction. This gives targets a chance to
|
||||
@@ -545,7 +547,6 @@ protected:
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
bool SelectBinaryOp(const User *I, unsigned ISDOpcode);
|
||||
|
||||
bool SelectFNeg(const User *I);
|
||||
@@ -566,6 +567,7 @@ private:
|
||||
|
||||
bool SelectInsertValue(const User *I);
|
||||
|
||||
private:
|
||||
/// \brief Handle PHI nodes in successor blocks.
|
||||
///
|
||||
/// Emit code to ensure constants are copied into registers when needed.
|
||||
|
Reference in New Issue
Block a user