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