LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TargetIntrinsicInfo.cpp
Go to the documentation of this file.
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 
15 #include "llvm/ADT/StringMap.h"
16 #include "llvm/IR/Function.h"
17 using namespace llvm;
18 
20 }
21 
23 }
24 
26  const ValueName *ValName = F->getValueName();
27  if (!ValName)
28  return 0;
29  return lookupName(ValName->getKeyData(), ValName->getKeyLength());
30 }
virtual unsigned getIntrinsicID(Function *F) const
Return the target intrinsic ID of a function, or 0.
F(f)
virtual unsigned lookupName(const char *Name, unsigned Len) const =0
ValueName * getValueName() const
Definition: Value.h:118
const char * getKeyData() const
Definition: StringMap.h:140
unsigned getKeyLength() const
Definition: StringMap.h:48