mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 19:19:26 +00:00
Naming fix: LLVMCCConfigurationEmitter -> LLVMCConfigurationEmitter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ceda1734cc
commit
895820da24
@ -20,7 +20,7 @@ TOOLS_SOURCE=Example.td Tools.td Common.td
|
|||||||
# The degree of horrorshowness in that file is too much for me atm.
|
# The degree of horrorshowness in that file is too much for me atm.
|
||||||
$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
|
$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
|
||||||
$(Echo) "Building LLVMCC configuration library with tblgen"
|
$(Echo) "Building LLVMCC configuration library with tblgen"
|
||||||
$(Verb) $(TableGen) -gen-llvmcc -o $(call SYSPATH, $@) $<
|
$(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
|
||||||
|
|
||||||
AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
|
AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
|
||||||
$(Verb) $(CMP) -s $@ $< || $(CP) $< $@
|
$(Verb) $(CMP) -s $@ $< || $(CP) $< $@
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
//namespace {
|
namespace {
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
/// Typedefs
|
/// Typedefs
|
||||||
@ -1080,10 +1080,10 @@ void EmitPopulateCompilationGraph (Record* CompilationGraph,
|
|||||||
|
|
||||||
|
|
||||||
// End of anonymous namespace
|
// End of anonymous namespace
|
||||||
//}
|
}
|
||||||
|
|
||||||
// Back-end entry point
|
// Back-end entry point
|
||||||
void LLVMCCConfigurationEmitter::run (std::ostream &O) {
|
void LLVMCConfigurationEmitter::run (std::ostream &O) {
|
||||||
// Emit file header
|
// Emit file header
|
||||||
EmitSourceFileHeader("LLVMC Configuration Library", O);
|
EmitSourceFileHeader("LLVMC Configuration Library", O);
|
||||||
|
|
||||||
|
@ -11,20 +11,20 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#ifndef LLVMCCCONF_EMITTER_H
|
#ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|
||||||
#define LLVMCCCONF_EMITTER_H
|
#define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|
||||||
|
|
||||||
#include "TableGenBackend.h"
|
#include "TableGenBackend.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class LLVMCCConfigurationEmitter : public TableGenBackend {
|
class LLVMCConfigurationEmitter : public TableGenBackend {
|
||||||
RecordKeeper &Records;
|
RecordKeeper &Records;
|
||||||
public:
|
public:
|
||||||
explicit LLVMCCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
|
explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
|
||||||
|
|
||||||
// run - Output the asmwriter, returning true on failure.
|
// run - Output the asmwriter, returning true on failure.
|
||||||
void run(std::ostream &o);
|
void run(std::ostream &o);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //LLVMCCCONF_EMITTER_H
|
#endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|
||||||
|
@ -47,7 +47,7 @@ enum ActionType {
|
|||||||
GenDAGISel,
|
GenDAGISel,
|
||||||
GenSubtarget,
|
GenSubtarget,
|
||||||
GenIntrinsic,
|
GenIntrinsic,
|
||||||
GenLLVMCCConf,
|
GenLLVMCConf,
|
||||||
PrintEnums
|
PrintEnums
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -78,8 +78,8 @@ namespace {
|
|||||||
"Generate subtarget enumerations"),
|
"Generate subtarget enumerations"),
|
||||||
clEnumValN(GenIntrinsic, "gen-intrinsic",
|
clEnumValN(GenIntrinsic, "gen-intrinsic",
|
||||||
"Generate intrinsic information"),
|
"Generate intrinsic information"),
|
||||||
clEnumValN(GenLLVMCCConf, "gen-llvmcc",
|
clEnumValN(GenLLVMCConf, "gen-llvmc",
|
||||||
"Generate LLVMCC configuration library"),
|
"Generate LLVMC configuration library"),
|
||||||
clEnumValN(PrintEnums, "print-enums",
|
clEnumValN(PrintEnums, "print-enums",
|
||||||
"Print enum values for a class"),
|
"Print enum values for a class"),
|
||||||
clEnumValEnd));
|
clEnumValEnd));
|
||||||
@ -183,8 +183,8 @@ int main(int argc, char **argv) {
|
|||||||
case GenIntrinsic:
|
case GenIntrinsic:
|
||||||
IntrinsicEmitter(Records).run(*Out);
|
IntrinsicEmitter(Records).run(*Out);
|
||||||
break;
|
break;
|
||||||
case GenLLVMCCConf:
|
case GenLLVMCConf:
|
||||||
LLVMCCConfigurationEmitter(Records).run(*Out);
|
LLVMCConfigurationEmitter(Records).run(*Out);
|
||||||
break;
|
break;
|
||||||
case PrintEnums:
|
case PrintEnums:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user