mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Add a new interface to allow IR-level passes to access codegen-specific information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "XCoreISelLowering.h"
|
||||
#include "XCoreSelectionDAGInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetTransformImpl.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
|
||||
namespace llvm {
|
||||
@@ -31,6 +32,8 @@ class XCoreTargetMachine : public LLVMTargetMachine {
|
||||
XCoreFrameLowering FrameLowering;
|
||||
XCoreTargetLowering TLInfo;
|
||||
XCoreSelectionDAGInfo TSInfo;
|
||||
ScalarTargetTransformImpl STTI;
|
||||
VectorTargetTransformImpl VTTI;
|
||||
public:
|
||||
XCoreTargetMachine(const Target &T, StringRef TT,
|
||||
StringRef CPU, StringRef FS, const TargetOptions &Options,
|
||||
@@ -53,6 +56,12 @@ public:
|
||||
virtual const TargetRegisterInfo *getRegisterInfo() const {
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
virtual const ScalarTargetTransformInfo *getScalarTargetTransformInfo()const {
|
||||
return &STTI;
|
||||
}
|
||||
virtual const VectorTargetTransformInfo *getVectorTargetTransformInfo()const {
|
||||
return &VTTI;
|
||||
}
|
||||
virtual const DataLayout *getDataLayout() const { return &DL; }
|
||||
|
||||
// Pass Pipeline Configuration
|
||||
|
||||
Reference in New Issue
Block a user