Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/TargetIntrinsicInfo.cpp @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
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. | |
11 // | |
12 //===----------------------------------------------------------------------===// | |
13 | |
14 #include "llvm/Target/TargetIntrinsicInfo.h" | |
15 #include "llvm/ADT/StringMap.h" | |
16 #include "llvm/IR/Function.h" | |
17 using namespace llvm; | |
18 | |
19 TargetIntrinsicInfo::TargetIntrinsicInfo() { | |
20 } | |
21 | |
22 TargetIntrinsicInfo::~TargetIntrinsicInfo() { | |
23 } | |
24 | |
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()); | |
30 } |