mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Temporarily Revert "Nuke the old JIT." as it's not quite ready to
be deleted. This will be reapplied as soon as possible and before the 3.6 branch date at any rate. Approved by Jim Grosbach, Lang Hames, Rafael Espindola. This reverts commits r215111, 215115, 215116, 215117, 215136. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "PPCFrameLowering.h"
|
||||
#include "PPCInstrInfo.h"
|
||||
#include "PPCISelLowering.h"
|
||||
#include "PPCJITInfo.h"
|
||||
#include "PPCSelectionDAGInfo.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
@@ -103,6 +104,7 @@ protected:
|
||||
bool DeprecatedMFTB;
|
||||
bool DeprecatedDST;
|
||||
bool HasLazyResolverStubs;
|
||||
bool IsJITCodeModel;
|
||||
bool IsLittleEndian;
|
||||
|
||||
/// TargetTriple - What processor and OS we're targeting.
|
||||
@@ -120,6 +122,7 @@ protected:
|
||||
PPCFrameLowering FrameLowering;
|
||||
const DataLayout DL;
|
||||
PPCInstrInfo InstrInfo;
|
||||
PPCJITInfo JITInfo;
|
||||
PPCTargetLowering TLInfo;
|
||||
PPCSelectionDAGInfo TSInfo;
|
||||
|
||||
@@ -135,6 +138,10 @@ public:
|
||||
/// subtarget options. Definition of function is auto generated by tblgen.
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
|
||||
|
||||
/// SetJITMode - This is called to inform the subtarget info that we are
|
||||
/// producing code for the JIT.
|
||||
void SetJITMode();
|
||||
|
||||
/// getStackAlignment - Returns the minimum alignment known to hold of the
|
||||
/// stack frame on entry to the function and which must be maintained by every
|
||||
/// function for this subtarget.
|
||||
@@ -155,6 +162,7 @@ public:
|
||||
}
|
||||
const DataLayout *getDataLayout() const override { return &DL; }
|
||||
const PPCInstrInfo *getInstrInfo() const override { return &InstrInfo; }
|
||||
PPCJITInfo *getJITInfo() override { return &JITInfo; }
|
||||
const PPCTargetLowering *getTargetLowering() const override {
|
||||
return &TLInfo;
|
||||
}
|
||||
@@ -199,6 +207,9 @@ public:
|
||||
bool hasLazyResolverStub(const GlobalValue *GV,
|
||||
const TargetMachine &TM) const;
|
||||
|
||||
// isJITCodeModel - True if we're generating code for the JIT
|
||||
bool isJITCodeModel() const { return IsJITCodeModel; }
|
||||
|
||||
// isLittleEndian - True if generating little-endian code
|
||||
bool isLittleEndian() const { return IsLittleEndian; }
|
||||
|
||||
|
Reference in New Issue
Block a user