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