Merge branch 'master' into msp430
[llvm/msp430.git] / utils / TableGen / IntrinsicEmitter.h
blob1619d02242929635a92b9101fa92b60b84ea996c
1 //===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This tablegen backend emits information about intrinsic functions.
12 //===----------------------------------------------------------------------===//
14 #ifndef INTRINSIC_EMITTER_H
15 #define INTRINSIC_EMITTER_H
17 #include "CodeGenIntrinsics.h"
18 #include "TableGenBackend.h"
20 namespace llvm {
21 class IntrinsicEmitter : public TableGenBackend {
22 RecordKeeper &Records;
23 bool TargetOnly;
24 std::string TargetPrefix;
26 public:
27 IntrinsicEmitter(RecordKeeper &R, bool T = false)
28 : Records(R), TargetOnly(T) {}
30 void run(std::ostream &OS);
32 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
33 std::ostream &OS);
35 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
36 std::ostream &OS);
37 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
38 std::ostream &OS);
39 void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
40 std::ostream &OS);
41 void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
42 std::ostream &OS);
43 void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
44 std::ostream &OS);
45 void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
46 std::ostream &OS);
47 void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
48 std::ostream &OS);
49 void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
50 std::ostream &OS);
51 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
52 std::ostream &OS);
55 } // End llvm namespace
57 #endif