zpu: wip eke out some simple instructions for load/store/add
[llvm/zpu.git] / lib / Target / TargetIntrinsicInfo.cpp
blobe049a1d3b62f67cb1a13dd1374d1626fa7ec4d45
1 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the TargetIntrinsicInfo class.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Target/TargetIntrinsicInfo.h"
15 #include "llvm/Function.h"
16 #include "llvm/ADT/StringMap.h"
17 using namespace llvm;
19 TargetIntrinsicInfo::TargetIntrinsicInfo() {
22 TargetIntrinsicInfo::~TargetIntrinsicInfo() {
25 unsigned TargetIntrinsicInfo::getIntrinsicID(Function *F) const {
26 const ValueName *ValName = F->getValueName();
27 if (!ValName)
28 return 0;
29 return lookupName(ValName->getKeyData(), ValName->getKeyLength());