mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 04:11:27 +00:00
9ce53d8411
llvm-svn: 24013
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
//===- SubtargetEmitter.h - Generate subtarget enumerations -----*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by James M. Laskey and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This tablegen backend emits subtarget enumerations.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SUBTARGET_EMITTER_H
|
|
#define SUBTARGET_EMITTER_H
|
|
|
|
#include "TableGenBackend.h"
|
|
|
|
namespace llvm {
|
|
|
|
class SubtargetEmitter : public TableGenBackend {
|
|
RecordKeeper &Records;
|
|
std::string Target;
|
|
|
|
void Enumeration(std::ostream &OS, const char *ClassName, bool isBits);
|
|
void FeatureKeyValues(std::ostream &OS);
|
|
void CPUKeyValues(std::ostream &OS);
|
|
void SubtargetEmitter::ParseFeaturesFunction(std::ostream &OS);
|
|
|
|
public:
|
|
SubtargetEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
// run - Output the subtarget enumerations, returning true on failure.
|
|
void run(std::ostream &o);
|
|
|
|
};
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|
|
|
|
|
|
|