2006-03-03 02:32:46 +00:00
|
|
|
//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by Chris Lattner and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
public:
|
|
|
|
IntrinsicEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
|
|
|
|
void run(std::ostream &OS);
|
|
|
|
|
|
|
|
void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 20:34:19 +00:00
|
|
|
|
|
|
|
void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-15 01:55:21 +00:00
|
|
|
void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 22:05:04 +00:00
|
|
|
void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 22:30:49 +00:00
|
|
|
void EmitModRefInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-24 01:13:55 +00:00
|
|
|
void EmitNoMemoryInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 22:37:52 +00:00
|
|
|
void EmitSideEffectInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-13 23:08:44 +00:00
|
|
|
void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-15 01:33:26 +00:00
|
|
|
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-03 02:32:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|