1 //===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // 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
;
24 std::string TargetPrefix
;
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
,
35 void EmitFnNameRecognizer(const std::vector
<CodeGenIntrinsic
> &Ints
,
37 void EmitIntrinsicToNameTable(const std::vector
<CodeGenIntrinsic
> &Ints
,
39 void EmitIntrinsicToOverloadTable(const std::vector
<CodeGenIntrinsic
> &Ints
,
41 void EmitVerifier(const std::vector
<CodeGenIntrinsic
> &Ints
,
43 void EmitGenerator(const std::vector
<CodeGenIntrinsic
> &Ints
,
45 void EmitAttributes(const std::vector
<CodeGenIntrinsic
> &Ints
,
47 void EmitModRefBehavior(const std::vector
<CodeGenIntrinsic
> &Ints
,
49 void EmitGCCBuiltinList(const std::vector
<CodeGenIntrinsic
> &Ints
,
51 void EmitIntrinsicToGCCBuiltinMap(const std::vector
<CodeGenIntrinsic
> &Ints
,
55 } // End llvm namespace