blob: 357369263b970b9bda7c4dc7f5c49dd4664f239c [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerfd6c2f02007-12-29 20:37:13 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This tablegen backend emits information about intrinsic functions.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef INTRINSIC_EMITTER_H
15#define INTRINSIC_EMITTER_H
16
17#include "CodeGenIntrinsics.h"
18#include "TableGenBackend.h"
19
20namespace llvm {
21 class IntrinsicEmitter : public TableGenBackend {
22 RecordKeeper &Records;
23
24 public:
Dale Johannesen04c5fb62009-02-04 22:47:25 +000025 IntrinsicEmitter(RecordKeeper &R) : Records(R) {}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026
27 void run(std::ostream &OS);
28
29 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
30 std::ostream &OS);
31
32 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
33 std::ostream &OS);
34 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
35 std::ostream &OS);
36 void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
37 std::ostream &OS);
38 void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
39 std::ostream &OS);
Duncan Sands79d28872007-12-03 20:06:50 +000040 void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000041 std::ostream &OS);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000042 void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
43 std::ostream &OS);
44 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
45 std::ostream &OS);
46 };
47
48} // End llvm namespace
49
50#endif
51
52
53