mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-16 06:30:13 +00:00
Revert r247216: "Fix Clang-tidy misc-use-override warnings, other minor fixes"
This caused build breakges, e.g. http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/24926 llvm-svn: 247226
This commit is contained in:
parent
d90c25bcb0
commit
ddb1cf7aeb
@ -1,4 +1,4 @@
|
|||||||
//===- MIRParser.h - MIR serialization format parser ------------*- C++ -*-===//
|
//===- MIRParser.h - MIR serialization format parser ----------------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -37,7 +37,7 @@ class MIRParser : public MachineFunctionInitializer {
|
|||||||
public:
|
public:
|
||||||
MIRParser(std::unique_ptr<MIRParserImpl> Impl);
|
MIRParser(std::unique_ptr<MIRParserImpl> Impl);
|
||||||
MIRParser(const MIRParser &) = delete;
|
MIRParser(const MIRParser &) = delete;
|
||||||
~MIRParser() override;
|
~MIRParser();
|
||||||
|
|
||||||
/// Parse the optional LLVM IR module that's embedded in the MIR file.
|
/// Parse the optional LLVM IR module that's embedded in the MIR file.
|
||||||
///
|
///
|
||||||
@ -78,4 +78,4 @@ createMIRParser(std::unique_ptr<MemoryBuffer> Contents, LLVMContext &Context);
|
|||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
||||||
#endif // LLVM_CODEGEN_MIRPARSER_MIRPARSER_H
|
#endif
|
||||||
|
@ -69,8 +69,7 @@ public:
|
|||||||
virtual object::OwningBinary<object::ObjectFile>
|
virtual object::OwningBinary<object::ObjectFile>
|
||||||
getObjectForDebug(const object::ObjectFile &Obj) const = 0;
|
getObjectForDebug(const object::ObjectFile &Obj) const = 0;
|
||||||
|
|
||||||
uint64_t
|
uint64_t getSectionLoadAddress(const object::SectionRef &Sec) const;
|
||||||
getSectionLoadAddress(const object::SectionRef &Sec) const override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
@ -96,7 +95,7 @@ public:
|
|||||||
/// \brief Memory Management.
|
/// \brief Memory Management.
|
||||||
class MemoryManager {
|
class MemoryManager {
|
||||||
public:
|
public:
|
||||||
virtual ~MemoryManager() = default;
|
virtual ~MemoryManager() {}
|
||||||
|
|
||||||
/// Allocate a memory block of (at least) the given size suitable for
|
/// Allocate a memory block of (at least) the given size suitable for
|
||||||
/// executable code. The SectionID is a unique identifier assigned by the
|
/// executable code. The SectionID is a unique identifier assigned by the
|
||||||
@ -158,7 +157,7 @@ public:
|
|||||||
/// \brief Symbol resolution.
|
/// \brief Symbol resolution.
|
||||||
class SymbolResolver {
|
class SymbolResolver {
|
||||||
public:
|
public:
|
||||||
virtual ~SymbolResolver() = default;
|
virtual ~SymbolResolver() {}
|
||||||
|
|
||||||
/// This method returns the address of the specified function or variable.
|
/// This method returns the address of the specified function or variable.
|
||||||
/// It is used to resolve symbols during module linking.
|
/// It is used to resolve symbols during module linking.
|
||||||
@ -253,4 +252,4 @@ private:
|
|||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
||||||
#endif // LLVM_EXECUTIONENGINE_RUNTIMEDYLD_H
|
#endif
|
||||||
|
@ -507,7 +507,7 @@ public:
|
|||||||
explicit raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {
|
explicit raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {
|
||||||
SetUnbuffered();
|
SetUnbuffered();
|
||||||
}
|
}
|
||||||
~raw_svector_ostream() override = default;
|
~raw_svector_ostream() override {}
|
||||||
|
|
||||||
void flush() = delete;
|
void flush() = delete;
|
||||||
|
|
||||||
@ -536,9 +536,9 @@ class buffer_ostream : public raw_svector_ostream {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}
|
buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}
|
||||||
~buffer_ostream() override { OS << str(); }
|
~buffer_ostream() { OS << str(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
|
|
||||||
#endif // LLVM_SUPPORT_RAW_OSTREAM_H
|
#endif
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
RecTyKind getRecTyKind() const { return Kind; }
|
RecTyKind getRecTyKind() const { return Kind; }
|
||||||
|
|
||||||
RecTy(RecTyKind K) : Kind(K) {}
|
RecTy(RecTyKind K) : Kind(K) {}
|
||||||
virtual ~RecTy() = default;
|
virtual ~RecTy() {}
|
||||||
|
|
||||||
virtual std::string getAsString() const = 0;
|
virtual std::string getAsString() const = 0;
|
||||||
void print(raw_ostream &OS) const { OS << getAsString(); }
|
void print(raw_ostream &OS) const { OS << getAsString(); }
|
||||||
@ -267,7 +267,7 @@ protected:
|
|||||||
explicit Init(InitKind K) : Kind(K) {}
|
explicit Init(InitKind K) : Kind(K) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~Init() = default;
|
virtual ~Init() {}
|
||||||
|
|
||||||
/// isComplete - This virtual method should be overridden by values that may
|
/// isComplete - This virtual method should be overridden by values that may
|
||||||
/// not be completely specified yet.
|
/// not be completely specified yet.
|
||||||
@ -366,7 +366,7 @@ class TypedInit : public Init {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit TypedInit(InitKind K, RecTy *T) : Init(K), Ty(T) {}
|
explicit TypedInit(InitKind K, RecTy *T) : Init(K), Ty(T) {}
|
||||||
~TypedInit() override {
|
~TypedInit() {
|
||||||
// If this is a DefInit we need to delete the RecordRecTy.
|
// If this is a DefInit we need to delete the RecordRecTy.
|
||||||
if (getKind() == IK_DefInit)
|
if (getKind() == IK_DefInit)
|
||||||
delete Ty;
|
delete Ty;
|
||||||
@ -1587,6 +1587,6 @@ Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass,
|
|||||||
Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass,
|
Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass,
|
||||||
const std::string &Name, const std::string &Scoper);
|
const std::string &Name, const std::string &Scoper);
|
||||||
|
|
||||||
} // end llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif // LLVM_TABLEGEN_RECORD_H
|
#endif
|
||||||
|
@ -40,7 +40,7 @@ struct MIRPrintingPass : public MachineFunctionPass {
|
|||||||
MachineFunctionPass::getAnalysisUsage(AU);
|
MachineFunctionPass::getAnalysisUsage(AU);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnMachineFunction(MachineFunction &MF) override {
|
virtual bool runOnMachineFunction(MachineFunction &MF) override {
|
||||||
std::string Str;
|
std::string Str;
|
||||||
raw_string_ostream StrOS(Str);
|
raw_string_ostream StrOS(Str);
|
||||||
printMIR(StrOS, MF);
|
printMIR(StrOS, MF);
|
||||||
@ -48,7 +48,7 @@ struct MIRPrintingPass : public MachineFunctionPass {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool doFinalization(Module &M) override {
|
virtual bool doFinalization(Module &M) override {
|
||||||
printMIR(OS, M);
|
printMIR(OS, M);
|
||||||
OS << MachineFunctions;
|
OS << MachineFunctions;
|
||||||
return false;
|
return false;
|
||||||
|
@ -223,13 +223,12 @@ public:
|
|||||||
/// FindFunctionNamed - Search all of the active modules to find the function that
|
/// FindFunctionNamed - Search all of the active modules to find the function that
|
||||||
/// defines FnName. This is very slow operation and shouldn't be used for
|
/// defines FnName. This is very slow operation and shouldn't be used for
|
||||||
/// general code.
|
/// general code.
|
||||||
Function *FindFunctionNamed(const char *FnName) override;
|
virtual Function *FindFunctionNamed(const char *FnName) override;
|
||||||
|
|
||||||
/// FindGlobalVariableNamed - Search all of the active modules to find the
|
/// FindGlobalVariableNamed - Search all of the active modules to find the global variable
|
||||||
/// global variable that defines Name. This is very slow operation and
|
/// that defines Name. This is very slow operation and shouldn't be used for
|
||||||
/// shouldn't be used for general code.
|
/// general code.
|
||||||
GlobalVariable *FindGlobalVariableNamed(const char *Name,
|
virtual GlobalVariable *FindGlobalVariableNamed(const char *Name, bool AllowInternal = false) override;
|
||||||
bool AllowInternal = false) override;
|
|
||||||
|
|
||||||
/// Sets the object manager that MCJIT should use to avoid compilation.
|
/// Sets the object manager that MCJIT should use to avoid compilation.
|
||||||
void setObjectCache(ObjectCache *manager) override;
|
void setObjectCache(ObjectCache *manager) override;
|
||||||
@ -336,6 +335,6 @@ protected:
|
|||||||
bool CheckFunctionsOnly);
|
bool CheckFunctionsOnly);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif // LLVM_LIB_EXECUTIONENGINE_MCJIT_MCJIT_H
|
#endif
|
||||||
|
@ -185,10 +185,10 @@ public:
|
|||||||
X86AddressSanitizer(const MCSubtargetInfo &STI)
|
X86AddressSanitizer(const MCSubtargetInfo &STI)
|
||||||
: X86AsmInstrumentation(STI), RepPrefix(false), OrigSPOffset(0) {}
|
: X86AsmInstrumentation(STI), RepPrefix(false), OrigSPOffset(0) {}
|
||||||
|
|
||||||
~X86AddressSanitizer() override = default;
|
virtual ~X86AddressSanitizer() {}
|
||||||
|
|
||||||
// X86AsmInstrumentation implementation:
|
// X86AsmInstrumentation implementation:
|
||||||
void InstrumentAndEmitInstruction(const MCInst &Inst,
|
virtual void InstrumentAndEmitInstruction(const MCInst &Inst,
|
||||||
OperandVector &Operands,
|
OperandVector &Operands,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
const MCInstrInfo &MII,
|
const MCInstrInfo &MII,
|
||||||
@ -506,7 +506,7 @@ public:
|
|||||||
X86AddressSanitizer32(const MCSubtargetInfo &STI)
|
X86AddressSanitizer32(const MCSubtargetInfo &STI)
|
||||||
: X86AddressSanitizer(STI) {}
|
: X86AddressSanitizer(STI) {}
|
||||||
|
|
||||||
~X86AddressSanitizer32() override = default;
|
virtual ~X86AddressSanitizer32() {}
|
||||||
|
|
||||||
unsigned GetFrameReg(const MCContext &Ctx, MCStreamer &Out) {
|
unsigned GetFrameReg(const MCContext &Ctx, MCStreamer &Out) {
|
||||||
unsigned FrameReg = GetFrameRegGeneric(Ctx, Out);
|
unsigned FrameReg = GetFrameRegGeneric(Ctx, Out);
|
||||||
@ -535,7 +535,7 @@ public:
|
|||||||
OrigSPOffset += 4;
|
OrigSPOffset += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandPrologue(const RegisterContext &RegCtx,
|
virtual void InstrumentMemOperandPrologue(const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override {
|
MCStreamer &Out) override {
|
||||||
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i32);
|
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i32);
|
||||||
@ -565,7 +565,7 @@ public:
|
|||||||
StoreFlags(Out);
|
StoreFlags(Out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandEpilogue(const RegisterContext &RegCtx,
|
virtual void InstrumentMemOperandEpilogue(const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override {
|
MCStreamer &Out) override {
|
||||||
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i32);
|
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i32);
|
||||||
@ -586,17 +586,17 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandSmall(X86Operand &Op, unsigned AccessSize,
|
virtual void InstrumentMemOperandSmall(X86Operand &Op, unsigned AccessSize,
|
||||||
bool IsWrite,
|
bool IsWrite,
|
||||||
const RegisterContext &RegCtx,
|
const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
void InstrumentMemOperandLarge(X86Operand &Op, unsigned AccessSize,
|
virtual void InstrumentMemOperandLarge(X86Operand &Op, unsigned AccessSize,
|
||||||
bool IsWrite,
|
bool IsWrite,
|
||||||
const RegisterContext &RegCtx,
|
const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
void InstrumentMOVSImpl(unsigned AccessSize, MCContext &Ctx,
|
virtual void InstrumentMOVSImpl(unsigned AccessSize, MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -763,7 +763,7 @@ public:
|
|||||||
X86AddressSanitizer64(const MCSubtargetInfo &STI)
|
X86AddressSanitizer64(const MCSubtargetInfo &STI)
|
||||||
: X86AddressSanitizer(STI) {}
|
: X86AddressSanitizer(STI) {}
|
||||||
|
|
||||||
~X86AddressSanitizer64() override = default;
|
virtual ~X86AddressSanitizer64() {}
|
||||||
|
|
||||||
unsigned GetFrameReg(const MCContext &Ctx, MCStreamer &Out) {
|
unsigned GetFrameReg(const MCContext &Ctx, MCStreamer &Out) {
|
||||||
unsigned FrameReg = GetFrameRegGeneric(Ctx, Out);
|
unsigned FrameReg = GetFrameRegGeneric(Ctx, Out);
|
||||||
@ -792,7 +792,7 @@ public:
|
|||||||
OrigSPOffset += 8;
|
OrigSPOffset += 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandPrologue(const RegisterContext &RegCtx,
|
virtual void InstrumentMemOperandPrologue(const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override {
|
MCStreamer &Out) override {
|
||||||
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i64);
|
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i64);
|
||||||
@ -823,7 +823,7 @@ public:
|
|||||||
StoreFlags(Out);
|
StoreFlags(Out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandEpilogue(const RegisterContext &RegCtx,
|
virtual void InstrumentMemOperandEpilogue(const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override {
|
MCStreamer &Out) override {
|
||||||
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i64);
|
unsigned LocalFrameReg = RegCtx.ChooseFrameReg(MVT::i64);
|
||||||
@ -845,17 +845,17 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstrumentMemOperandSmall(X86Operand &Op, unsigned AccessSize,
|
virtual void InstrumentMemOperandSmall(X86Operand &Op, unsigned AccessSize,
|
||||||
bool IsWrite,
|
bool IsWrite,
|
||||||
const RegisterContext &RegCtx,
|
const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
void InstrumentMemOperandLarge(X86Operand &Op, unsigned AccessSize,
|
virtual void InstrumentMemOperandLarge(X86Operand &Op, unsigned AccessSize,
|
||||||
bool IsWrite,
|
bool IsWrite,
|
||||||
const RegisterContext &RegCtx,
|
const RegisterContext &RegCtx,
|
||||||
MCContext &Ctx,
|
MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
void InstrumentMOVSImpl(unsigned AccessSize, MCContext &Ctx,
|
virtual void InstrumentMOVSImpl(unsigned AccessSize, MCContext &Ctx,
|
||||||
MCStreamer &Out) override;
|
MCStreamer &Out) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -1080,4 +1080,4 @@ CreateX86AsmInstrumentation(const MCTargetOptions &MCOptions,
|
|||||||
return new X86AsmInstrumentation(STI);
|
return new X86AsmInstrumentation(STI);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end llvm namespace
|
} // End llvm namespace
|
||||||
|
@ -220,11 +220,11 @@ public:
|
|||||||
initializeSafeStackPass(*PassRegistry::getPassRegistry());
|
initializeSafeStackPass(*PassRegistry::getPassRegistry());
|
||||||
}
|
}
|
||||||
|
|
||||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.addRequired<AAResultsWrapperPass>();
|
AU.addRequired<AAResultsWrapperPass>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool doInitialization(Module &M) override {
|
virtual bool doInitialization(Module &M) {
|
||||||
DL = &M.getDataLayout();
|
DL = &M.getDataLayout();
|
||||||
|
|
||||||
StackPtrTy = Type::getInt8PtrTy(M.getContext());
|
StackPtrTy = Type::getInt8PtrTy(M.getContext());
|
||||||
@ -235,7 +235,8 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnFunction(Function &F) override;
|
bool runOnFunction(Function &F);
|
||||||
|
|
||||||
}; // class SafeStack
|
}; // class SafeStack
|
||||||
|
|
||||||
Constant *SafeStack::getOrCreateUnsafeStackPtr(Module &M) {
|
Constant *SafeStack::getOrCreateUnsafeStackPtr(Module &M) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===- InstrInfoEmitter.cpp - Generate a Instruction Set Desc. --*- C++ -*-===//
|
//===- InstrInfoEmitter.cpp - Generate a Instruction Set Desc. ------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -12,6 +12,7 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
|
||||||
#include "CodeGenDAGPatterns.h"
|
#include "CodeGenDAGPatterns.h"
|
||||||
#include "CodeGenSchedule.h"
|
#include "CodeGenSchedule.h"
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
@ -25,7 +26,6 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -70,7 +70,7 @@ private:
|
|||||||
void EmitOperandInfo(raw_ostream &OS, OperandInfoMapTy &OperandInfoIDs);
|
void EmitOperandInfo(raw_ostream &OS, OperandInfoMapTy &OperandInfoIDs);
|
||||||
std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
|
std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
|
||||||
};
|
};
|
||||||
} // end anonymous namespace
|
} // End anonymous namespace
|
||||||
|
|
||||||
static void PrintDefList(const std::vector<Record*> &Uses,
|
static void PrintDefList(const std::vector<Record*> &Uses,
|
||||||
unsigned Num, raw_ostream &OS) {
|
unsigned Num, raw_ostream &OS) {
|
||||||
@ -190,6 +190,7 @@ void InstrInfoEmitter::EmitOperandInfo(raw_ostream &OS,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Initialize data structures for generating operand name mappings.
|
/// Initialize data structures for generating operand name mappings.
|
||||||
///
|
///
|
||||||
/// \param Operands [out] A map used to generate the OpName enum with operand
|
/// \param Operands [out] A map used to generate the OpName enum with operand
|
||||||
@ -256,9 +257,9 @@ void InstrInfoEmitter::emitOperandNameMappings(raw_ostream &OS,
|
|||||||
|
|
||||||
OS << "OPERAND_LAST";
|
OS << "OPERAND_LAST";
|
||||||
OS << "\n};\n";
|
OS << "\n};\n";
|
||||||
OS << "} // end namespace OpName\n";
|
OS << "} // End namespace OpName\n";
|
||||||
OS << "} // end namespace " << Namespace << "\n";
|
OS << "} // End namespace " << Namespace << "\n";
|
||||||
OS << "} // end namespace llvm\n";
|
OS << "} // End namespace llvm\n";
|
||||||
OS << "#endif //GET_INSTRINFO_OPERAND_ENUM\n";
|
OS << "#endif //GET_INSTRINFO_OPERAND_ENUM\n";
|
||||||
|
|
||||||
OS << "#ifdef GET_INSTRINFO_NAMED_OPS\n";
|
OS << "#ifdef GET_INSTRINFO_NAMED_OPS\n";
|
||||||
@ -297,8 +298,8 @@ void InstrInfoEmitter::emitOperandNameMappings(raw_ostream &OS,
|
|||||||
OS << " return -1;\n";
|
OS << " return -1;\n";
|
||||||
}
|
}
|
||||||
OS << "}\n";
|
OS << "}\n";
|
||||||
OS << "} // end namespace " << Namespace << "\n";
|
OS << "} // End namespace " << Namespace << "\n";
|
||||||
OS << "} // end namespace llvm\n";
|
OS << "} // End namespace llvm\n";
|
||||||
OS << "#endif //GET_INSTRINFO_NAMED_OPS\n";
|
OS << "#endif //GET_INSTRINFO_NAMED_OPS\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -327,9 +328,9 @@ void InstrInfoEmitter::emitOperandTypesEnum(raw_ostream &OS,
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS << " OPERAND_TYPE_LIST_END" << "\n};\n";
|
OS << " OPERAND_TYPE_LIST_END" << "\n};\n";
|
||||||
OS << "} // end namespace OpTypes\n";
|
OS << "} // End namespace OpTypes\n";
|
||||||
OS << "} // end namespace " << Namespace << "\n";
|
OS << "} // End namespace " << Namespace << "\n";
|
||||||
OS << "} // end namespace llvm\n";
|
OS << "} // End namespace llvm\n";
|
||||||
OS << "#endif // GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
|
OS << "#endif // GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,7 +419,7 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
|||||||
<< TargetName << "InstrNameIndices, " << TargetName << "InstrNameData, "
|
<< TargetName << "InstrNameIndices, " << TargetName << "InstrNameData, "
|
||||||
<< NumberedInstructions.size() << ");\n}\n\n";
|
<< NumberedInstructions.size() << ");\n}\n\n";
|
||||||
|
|
||||||
OS << "} // end llvm namespace \n";
|
OS << "} // End llvm namespace \n";
|
||||||
|
|
||||||
OS << "#endif // GET_INSTRINFO_MC_DESC\n\n";
|
OS << "#endif // GET_INSTRINFO_MC_DESC\n\n";
|
||||||
|
|
||||||
@ -431,9 +432,9 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
|||||||
OS << "struct " << ClassName << " : public TargetInstrInfo {\n"
|
OS << "struct " << ClassName << " : public TargetInstrInfo {\n"
|
||||||
<< " explicit " << ClassName
|
<< " explicit " << ClassName
|
||||||
<< "(int CFSetupOpcode = -1, int CFDestroyOpcode = -1);\n"
|
<< "(int CFSetupOpcode = -1, int CFDestroyOpcode = -1);\n"
|
||||||
<< " ~" << ClassName << "() override = default;\n"
|
<< " virtual ~" << ClassName << "();\n"
|
||||||
<< "};\n";
|
<< "};\n";
|
||||||
OS << "} // end llvm namespace \n";
|
OS << "} // End llvm namespace \n";
|
||||||
|
|
||||||
OS << "#endif // GET_INSTRINFO_HEADER\n\n";
|
OS << "#endif // GET_INSTRINFO_HEADER\n\n";
|
||||||
|
|
||||||
@ -449,8 +450,9 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
|||||||
<< " : TargetInstrInfo(CFSetupOpcode, CFDestroyOpcode) {\n"
|
<< " : TargetInstrInfo(CFSetupOpcode, CFDestroyOpcode) {\n"
|
||||||
<< " InitMCInstrInfo(" << TargetName << "Insts, " << TargetName
|
<< " InitMCInstrInfo(" << TargetName << "Insts, " << TargetName
|
||||||
<< "InstrNameIndices, " << TargetName << "InstrNameData, "
|
<< "InstrNameIndices, " << TargetName << "InstrNameData, "
|
||||||
<< NumberedInstructions.size() << ");\n}\n";
|
<< NumberedInstructions.size() << ");\n}\n"
|
||||||
OS << "} // end llvm namespace \n";
|
<< ClassName << "::~" << ClassName << "() {}\n";
|
||||||
|
OS << "} // End llvm namespace \n";
|
||||||
|
|
||||||
OS << "#endif // GET_INSTRINFO_CTOR_DTOR\n\n";
|
OS << "#endif // GET_INSTRINFO_CTOR_DTOR\n\n";
|
||||||
|
|
||||||
@ -594,9 +596,9 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
|
|||||||
OS << " " << Class.Name << "\t= " << Num++ << ",\n";
|
OS << " " << Class.Name << "\t= " << Num++ << ",\n";
|
||||||
OS << " SCHED_LIST_END = " << SchedModels.numInstrSchedClasses() << "\n";
|
OS << " SCHED_LIST_END = " << SchedModels.numInstrSchedClasses() << "\n";
|
||||||
OS << " };\n";
|
OS << " };\n";
|
||||||
OS << "} // end Sched namespace\n";
|
OS << "} // End Sched namespace\n";
|
||||||
OS << "} // end " << Namespace << " namespace\n";
|
OS << "} // End " << Namespace << " namespace\n";
|
||||||
OS << "} // end llvm namespace \n";
|
OS << "} // End llvm namespace \n";
|
||||||
|
|
||||||
OS << "#endif // GET_INSTRINFO_ENUM\n\n";
|
OS << "#endif // GET_INSTRINFO_ENUM\n\n";
|
||||||
}
|
}
|
||||||
@ -608,4 +610,4 @@ void EmitInstrInfo(RecordKeeper &RK, raw_ostream &OS) {
|
|||||||
EmitMapTable(RK, OS);
|
EmitMapTable(RK, OS);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end llvm namespace
|
} // End llvm namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user