blob: 5ce12da802a6b1731055a1aeac4ccedc2c7785ae [file] [log] [blame]
Chris Lattner9e493cf2006-03-03 02:32:46 +00001//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Chris Lattner and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
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:
25 IntrinsicEmitter(RecordKeeper &R) : Records(R) {}
26
27 void run(std::ostream &OS);
28
29 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
30 std::ostream &OS);
Chris Lattner9b843b22006-03-09 20:34:19 +000031
32 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
33 std::ostream &OS);
34
Chris Lattner9e493cf2006-03-03 02:32:46 +000035 };
36
37} // End llvm namespace
38
39#endif
40
41
42