freebsd-dev/utils/TableGen/IntrinsicEmitter.h

61 lines
2.1 KiB
C
Raw Normal View History

2009-06-02 17:52:33 +00:00
//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This tablegen backend emits information about intrinsic functions.
//
//===----------------------------------------------------------------------===//
#ifndef INTRINSIC_EMITTER_H
#define INTRINSIC_EMITTER_H
#include "CodeGenIntrinsics.h"
#include "TableGenBackend.h"
namespace llvm {
class IntrinsicEmitter : public TableGenBackend {
RecordKeeper &Records;
bool TargetOnly;
std::string TargetPrefix;
public:
IntrinsicEmitter(RecordKeeper &R, bool T = false)
: Records(R), TargetOnly(T) {}
2009-07-04 13:58:26 +00:00
void run(raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
2009-07-04 13:58:26 +00:00
raw_ostream &OS);
2009-06-02 17:52:33 +00:00
};
} // End llvm namespace
#endif