mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Implement a bunch more TargetSelectionDAGInfo infrastructure.
Move EmitTargetCodeForMemcpy, EmitTargetCodeForMemset, and EmitTargetCodeForMemmove out of TargetLowering and into SelectionDAGInfo to exercise this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "XCoreSubtarget.h"
|
||||
#include "XCoreInstrInfo.h"
|
||||
#include "XCoreISelLowering.h"
|
||||
#include "XCoreSelectionDAGInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -29,6 +30,7 @@ class XCoreTargetMachine : public LLVMTargetMachine {
|
||||
XCoreInstrInfo InstrInfo;
|
||||
XCoreFrameInfo FrameInfo;
|
||||
XCoreTargetLowering TLInfo;
|
||||
XCoreSelectionDAGInfo TSInfo;
|
||||
public:
|
||||
XCoreTargetMachine(const Target &T, const std::string &TT,
|
||||
const std::string &FS);
|
||||
@@ -40,6 +42,10 @@ public:
|
||||
return &TLInfo;
|
||||
}
|
||||
|
||||
virtual const XCoreSelectionDAGInfo* getSelectionDAGInfo() const {
|
||||
return &TSInfo;
|
||||
}
|
||||
|
||||
virtual const TargetRegisterInfo *getRegisterInfo() const {
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user