2006-03-03 03:32:46 +01: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 21:34:19 +01:00
|
|
|
|
|
|
|
void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-15 02:55:21 +01:00
|
|
|
void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 23:05:04 +01:00
|
|
|
void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 23:30:49 +01:00
|
|
|
void EmitModRefInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-24 02:13:55 +01:00
|
|
|
void EmitNoMemoryInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-09 23:37:52 +01:00
|
|
|
void EmitSideEffectInfo(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-14 00:08:44 +01:00
|
|
|
void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-15 02:33:26 +01:00
|
|
|
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
|
|
|
|
std::ostream &OS);
|
2006-03-03 03:32:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|