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
This commit is contained in:
Chris Lattner
2006-11-15 18:00:10 +00:00
parent d6842e4e18
commit b71fd7897f
5 changed files with 9 additions and 36 deletions

View File

@@ -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!");