blob: 7ab1ddfec73bf1c2eb46e81eb53d0a316bb26333 [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);
Chris Lattnerf97a00e2006-03-09 22:05:04 +000034 void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
35 std::ostream &OS);
Chris Lattner6448ee42006-03-09 22:30:49 +000036 void EmitModRefInfo(const std::vector<CodeGenIntrinsic> &Ints,
37 std::ostream &OS);
Chris Lattner4e5f3592006-03-09 22:37:52 +000038 void EmitSideEffectInfo(const std::vector<CodeGenIntrinsic> &Ints,
39 std::ostream &OS);
Chris Lattner022f64f2006-03-13 23:08:44 +000040 void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
41 std::ostream &OS);
Chris Lattner3f8b8912006-03-15 01:33:26 +000042 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
43 std::ostream &OS);
Chris Lattner9e493cf2006-03-03 02:32:46 +000044 };
45
46} // End llvm namespace
47
48#endif
49
50
51