2009-02-05 09:49:45 +08:00
|
|
|
//===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the TargetIntrinsicInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetIntrinsicInfo.h"
|
2009-10-16 02:49:26 +08:00
|
|
|
#include "llvm/ADT/StringMap.h"
|
2012-12-04 00:50:05 +08:00
|
|
|
#include "llvm/Function.h"
|
2009-02-05 09:49:45 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
2009-10-16 02:49:26 +08:00
|
|
|
TargetIntrinsicInfo::TargetIntrinsicInfo() {
|
2009-02-05 09:49:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
TargetIntrinsicInfo::~TargetIntrinsicInfo() {
|
|
|
|
}
|
2009-10-16 02:49:26 +08:00
|
|
|
|
|
|
|
unsigned TargetIntrinsicInfo::getIntrinsicID(Function *F) const {
|
|
|
|
const ValueName *ValName = F->getValueName();
|
|
|
|
if (!ValName)
|
|
|
|
return 0;
|
|
|
|
return lookupName(ValName->getKeyData(), ValName->getKeyLength());
|
|
|
|
}
|