recognize llvm.prefetch. Patch contributed by Justin Wick!

llvm-svn: 20377
This commit is contained in:
Chris Lattner 2005-02-28 19:28:00 +00:00
parent 39637ef023
commit 1772c1a672
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ unsigned Function::getIntrinsicID() const {
if (getName() == "llvm.memmove") return Intrinsic::memmove;
if (getName() == "llvm.memset") return Intrinsic::memset;
break;
case 'p':
if (getName() == "llvm.prefetch") return Intrinsic::prefetch;
break;
case 'r':
if (getName() == "llvm.returnaddress") return Intrinsic::returnaddress;
if (getName() == "llvm.readport") return Intrinsic::readport;