2009-02-05 01:49:45 +00: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-15 18:49:26 +00:00
|
|
|
#include "llvm/Function.h"
|
|
|
|
#include "llvm/ADT/StringMap.h"
|
2009-02-05 01:49:45 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2009-10-15 18:49:26 +00:00
|
|
|
TargetIntrinsicInfo::TargetIntrinsicInfo() {
|
2009-02-05 01:49:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TargetIntrinsicInfo::~TargetIntrinsicInfo() {
|
|
|
|
}
|
2009-10-15 18:49:26 +00:00
|
|
|
|
|
|
|
unsigned TargetIntrinsicInfo::getIntrinsicID(Function *F) const {
|
|
|
|
const ValueName *ValName = F->getValueName();
|
|
|
|
if (!ValName)
|
|
|
|
return 0;
|
|
|
|
return lookupName(ValName->getKeyData(), ValName->getKeyLength());
|
|
|
|
}
|