2006-03-03 03:32:46 +01:00
|
|
|
//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:37:13 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-03-03 03:32:46 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This tablegen backend emits information about intrinsic functions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef INTRINSIC_EMITTER_H
|
|
|
|
#define INTRINSIC_EMITTER_H
|
|
|
|
|
|
|
|
#include "CodeGenIntrinsics.h"
|
2011-10-01 18:41:13 +02:00
|
|
|
#include "llvm/TableGen/TableGenBackend.h"
|
2006-03-03 03:32:46 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class IntrinsicEmitter : public TableGenBackend {
|
|
|
|
RecordKeeper &Records;
|
2009-02-05 02:49:45 +01:00
|
|
|
bool TargetOnly;
|
|
|
|
std::string TargetPrefix;
|
2006-03-03 03:32:46 +01:00
|
|
|
|
|
|
|
public:
|
2009-02-05 02:49:45 +01:00
|
|
|
IntrinsicEmitter(RecordKeeper &R, bool T = false)
|
|
|
|
: Records(R), TargetOnly(T) {}
|
2006-03-03 03:32:46 +01:00
|
|
|
|
2009-07-03 02:10:29 +02:00
|
|
|
void run(raw_ostream &OS);
|
2010-05-11 08:17:44 +02:00
|
|
|
|
|
|
|
void EmitPrefix(raw_ostream &OS);
|
2006-03-03 03:32:46 +01:00
|
|
|
|
|
|
|
void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2006-03-09 21:34:19 +01:00
|
|
|
|
|
|
|
void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2006-03-15 02:55:21 +01:00
|
|
|
void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2009-02-25 00:17:49 +01:00
|
|
|
void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2006-03-09 23:05:04 +01:00
|
|
|
void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2007-02-07 21:38:26 +01:00
|
|
|
void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2007-12-03 21:06:50 +01:00
|
|
|
void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2009-02-14 11:56:35 +01:00
|
|
|
void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2006-03-15 02:33:26 +01:00
|
|
|
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
|
2009-07-03 02:10:29 +02:00
|
|
|
raw_ostream &OS);
|
2010-05-11 08:17:44 +02:00
|
|
|
void EmitSuffix(raw_ostream &OS);
|
2006-03-03 03:32:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|