mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 12:24:34 +00:00
TableGen: Don't emit the llvm intrinsic -> gcc builtin table, its only user was the c backend.
llvm-svn: 153432
This commit is contained in:
parent
76f7896f49
commit
773a45650a
@ -57,9 +57,6 @@ void IntrinsicEmitter::run(raw_ostream &OS) {
|
|||||||
// Emit intrinsic alias analysis mod/ref behavior.
|
// Emit intrinsic alias analysis mod/ref behavior.
|
||||||
EmitModRefBehavior(Ints, OS);
|
EmitModRefBehavior(Ints, OS);
|
||||||
|
|
||||||
// Emit a list of intrinsics with corresponding GCC builtins.
|
|
||||||
EmitGCCBuiltinList(Ints, OS);
|
|
||||||
|
|
||||||
// Emit code to translate GCC builtins into LLVM intrinsics.
|
// Emit code to translate GCC builtins into LLVM intrinsics.
|
||||||
EmitIntrinsicToGCCBuiltinMap(Ints, OS);
|
EmitIntrinsicToGCCBuiltinMap(Ints, OS);
|
||||||
|
|
||||||
@ -653,22 +650,6 @@ EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){
|
|||||||
<< "#endif // GET_INTRINSIC_MODREF_BEHAVIOR\n\n";
|
<< "#endif // GET_INTRINSIC_MODREF_BEHAVIOR\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntrinsicEmitter::
|
|
||||||
EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){
|
|
||||||
OS << "// Get the GCC builtin that corresponds to an LLVM intrinsic.\n";
|
|
||||||
OS << "#ifdef GET_GCC_BUILTIN_NAME\n";
|
|
||||||
OS << " switch (F->getIntrinsicID()) {\n";
|
|
||||||
OS << " default: BuiltinName = \"\"; break;\n";
|
|
||||||
for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
|
|
||||||
if (!Ints[i].GCCBuiltinName.empty()) {
|
|
||||||
OS << " case Intrinsic::" << Ints[i].EnumName << ": BuiltinName = \""
|
|
||||||
<< Ints[i].GCCBuiltinName << "\"; break;\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
OS << " }\n";
|
|
||||||
OS << "#endif\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
/// EmitTargetBuiltins - All of the builtins in the specified map are for the
|
/// EmitTargetBuiltins - All of the builtins in the specified map are for the
|
||||||
/// same target, and we already checked it.
|
/// same target, and we already checked it.
|
||||||
static void EmitTargetBuiltins(const std::map<std::string, std::string> &BIM,
|
static void EmitTargetBuiltins(const std::map<std::string, std::string> &BIM,
|
||||||
|
@ -48,8 +48,6 @@ namespace llvm {
|
|||||||
raw_ostream &OS);
|
raw_ostream &OS);
|
||||||
void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
|
void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
|
||||||
raw_ostream &OS);
|
raw_ostream &OS);
|
||||||
void EmitGCCBuiltinList(const std::vector<CodeGenIntrinsic> &Ints,
|
|
||||||
raw_ostream &OS);
|
|
||||||
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
|
void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
|
||||||
raw_ostream &OS);
|
raw_ostream &OS);
|
||||||
void EmitSuffix(raw_ostream &OS);
|
void EmitSuffix(raw_ostream &OS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user