diff options
| author | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:15 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2018-11-05 23:49:15 +0000 |
| commit | 7ab3a66a8cfab55106854a1a9b49483ada505ec5 (patch) | |
| tree | 231c16f93e2bf66fa282878c6d6be62d13c5afc5 /llvm | |
| parent | 7a75a91b5b0e46afff5f8e0e9deb3833ce12a26a (diff) | |
| download | bcm5719-llvm-7ab3a66a8cfab55106854a1a9b49483ada505ec5.tar.gz bcm5719-llvm-7ab3a66a8cfab55106854a1a9b49483ada505ec5.zip | |
TargetMachine: Move lib/CodeGen specific callbacks to LLVMTargetMachine; NFC
llvm-svn: 346184
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Target/TargetMachine.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/include/llvm/Target/TargetMachine.h b/llvm/include/llvm/Target/TargetMachine.h index e743e9faa7e..f968fa80d50 100644 --- a/llvm/include/llvm/Target/TargetMachine.h +++ b/llvm/include/llvm/Target/TargetMachine.h @@ -284,18 +284,6 @@ public: void getNameWithPrefix(SmallVectorImpl<char> &Name, const GlobalValue *GV, Mangler &Mang, bool MayAlwaysUsePrivate = false) const; MCSymbol *getSymbol(const GlobalValue *GV) const; - - /// True if the target uses physical regs at Prolog/Epilog insertion - /// time. If true (most machines), all vregs must be allocated before - /// PEI. If false (virtual-register machines), then callee-save register - /// spilling and scavenging are not needed or used. - virtual bool usesPhysRegsForPEI() const { return true; } - - /// True if the target wants to use interprocedural register allocation by - /// default. The -enable-ipra flag can be used to override this. - virtual bool useIPRA() const { - return false; - } }; /// This class describes a target machine that is implemented with the LLVM @@ -349,6 +337,18 @@ public: bool addAsmPrinter(PassManagerBase &PM, raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut, CodeGenFileType FileTYpe, MCContext &Context); + + /// True if the target uses physical regs at Prolog/Epilog insertion + /// time. If true (most machines), all vregs must be allocated before + /// PEI. If false (virtual-register machines), then callee-save register + /// spilling and scavenging are not needed or used. + virtual bool usesPhysRegsForPEI() const { return true; } + + /// True if the target wants to use interprocedural register allocation by + /// default. The -enable-ipra flag can be used to override this. + virtual bool useIPRA() const { + return false; + } }; } // end namespace llvm |

