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