1 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the TargetIntrinsicInfo class.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Target/TargetIntrinsicInfo.h"
15 #include "llvm/ADT/StringMap.h"
16 #include "llvm/Function.h"
19 TargetIntrinsicInfo::TargetIntrinsicInfo() {
22 TargetIntrinsicInfo::~TargetIntrinsicInfo() {
25 unsigned TargetIntrinsicInfo::getIntrinsicID(Function *F) const {
26 const ValueName *ValName = F->getValueName();
29 return lookupName(ValName->getKeyData(), ValName->getKeyLength());