diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-15 18:00:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-15 18:00:10 +0000 |
commit | b71fd7897f6b4500cdbe602c5a9907316750cf5a (patch) | |
tree | bfde4bc0d508d66aa539e308ff37ea881c711a67 /lib | |
parent | d6842e4e1805feaaf865a7b6bf59b35e4c5e0759 (diff) |
Simplify IntrinsicLowering and clarify that it is only for use by the
CBE and interpreter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/IntrinsicLowering.cpp | 6 | ||||
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index 982a261fc1..ece3072d00 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/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/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 78e7a3c892..4728c95b74 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/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/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 4b6ee91b5f..ba3b7ca8b0 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.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; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 4b6ee91b5f..ba3b7ca8b0 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/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; |