1 //===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
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"
21 class IntrinsicEmitter : public TableGenBackend {
22 RecordKeeper &Records;
25 IntrinsicEmitter(RecordKeeper &R) : Records(R) {}
27 void run(std::ostream &OS);
29 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
32 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
34 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
36 void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
38 void EmitModRefInfo(const std::vector<CodeGenIntrinsic> &Ints,
40 void EmitNoMemoryInfo(const std::vector<CodeGenIntrinsic> &Ints,
42 void EmitSideEffectInfo(const std::vector<CodeGenIntrinsic> &Ints,
44 void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
46 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
50 } // End llvm namespace