LLVM  15.0.0git
TargetIntrinsicInfo.cpp
Go to the documentation of this file.
1 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the TargetIntrinsicInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
15 #include "llvm/IR/Function.h"
16 using namespace llvm;
17 
19 
21 
23  const ValueName *ValName = F->getValueName();
24  if (!ValName)
25  return 0;
26  return lookupName(ValName->getKeyData(), ValName->getKeyLength());
27 }
StringMapEntry.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition: StringMapEntry.h:101
llvm::StringMapEntryBase::getKeyLength
size_t getKeyLength() const
Definition: StringMapEntry.h:32
llvm::Function
Definition: Function.h:60
F
#define F(x, y, z)
Definition: MD5.cpp:55
llvm::TargetIntrinsicInfo::TargetIntrinsicInfo
TargetIntrinsicInfo()
llvm::TargetIntrinsicInfo::lookupName
virtual unsigned lookupName(const char *Name, unsigned Len) const =0
Look up target intrinsic by name.
llvm::StringMapEntry::getKeyData
const char * getKeyData() const
getKeyData - Return the start of the string data that is the key for this value.
Definition: StringMapEntry.h:112
llvm::TargetIntrinsicInfo::~TargetIntrinsicInfo
virtual ~TargetIntrinsicInfo()
llvm::TargetIntrinsicInfo::getIntrinsicID
virtual unsigned getIntrinsicID(const Function *F) const
Return the target intrinsic ID of a function, or 0.
Definition: TargetIntrinsicInfo.cpp:22
Function.h
TargetIntrinsicInfo.h