LLVM API Documentation
00001 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file implements the TargetIntrinsicInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "llvm/Target/TargetIntrinsicInfo.h" 00015 #include "llvm/ADT/StringMap.h" 00016 #include "llvm/IR/Function.h" 00017 using namespace llvm; 00018 00019 TargetIntrinsicInfo::TargetIntrinsicInfo() { 00020 } 00021 00022 TargetIntrinsicInfo::~TargetIntrinsicInfo() { 00023 } 00024 00025 unsigned TargetIntrinsicInfo::getIntrinsicID(Function *F) const { 00026 const ValueName *ValName = F->getValueName(); 00027 if (!ValName) 00028 return 0; 00029 return lookupName(ValName->getKeyData(), ValName->getKeyLength()); 00030 }