summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-15 18:00:10 +0000
committerChris Lattner <sabre@nondot.org>2006-11-15 18:00:10 +0000
commit2775aba51d689e56446720959e86a30e91d69973 (patch)
tree93a726728dbad6be0ba90de1787bbadaa5b08d9f /llvm/lib
parent60c2a0154a963ca0c9a3a2310866025918ecf1f5 (diff)
downloadbcm5719-llvm-2775aba51d689e56446720959e86a30e91d69973.tar.gz
bcm5719-llvm-2775aba51d689e56446720959e86a30e91d69973.zip
Simplify IntrinsicLowering and clarify that it is only for use by the
CBE and interpreter. llvm-svn: 31755
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/IntrinsicLowering.cpp6
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp2
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp
index 982a261fc10..ece3072d00e 100644
--- a/llvm/lib/CodeGen/IntrinsicLowering.cpp
+++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements the default intrinsic lowering implementation.
+// This file implements the IntrinsicLowering class.
//
//===----------------------------------------------------------------------===//
@@ -82,7 +82,7 @@ static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI,
return NewCI;
}
-void DefaultIntrinsicLowering::AddPrototypes(Module &M) {
+void IntrinsicLowering::AddPrototypes(Module &M) {
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (I->isExternal() && !I->use_empty())
switch (I->getIntrinsicID()) {
@@ -263,7 +263,7 @@ static Value *LowerCTLZ(Value *V, Instruction *IP) {
-void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
+void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
Function *Callee = CI->getCalledFunction();
assert(Callee && "Cannot lower an indirect call!");
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
index 78e7a3c8922..4728c95b743 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
@@ -67,7 +67,7 @@ Interpreter::Interpreter(Module *M) : ExecutionEngine(M), TD(M) {
initializeExternalFunctions();
emitGlobals();
- IL = new DefaultIntrinsicLowering();
+ IL = new IntrinsicLowering();
}
Interpreter::~Interpreter() {
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index 4b6ee91b5f6..ba3b7ca8b0e 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/lib/Target/CBackend/Writer.cpp
@@ -69,7 +69,7 @@ namespace {
/// module to a C translation unit.
class CWriter : public FunctionPass, public InstVisitor<CWriter> {
std::ostream &Out;
- DefaultIntrinsicLowering IL;
+ IntrinsicLowering IL;
Mangler *Mang;
LoopInfo *LI;
const Module *TheModule;
OpenPOWER on IntegriCloud