LLVM
17.0.0git
lib
Target
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
13
#include "
llvm/Target/TargetIntrinsicInfo.h
"
14
#include "
llvm/ADT/StringMapEntry.h
"
15
#include "
llvm/IR/Function.h
"
16
using namespace
llvm
;
17
18
TargetIntrinsicInfo::TargetIntrinsicInfo
() =
default
;
19
20
TargetIntrinsicInfo::~TargetIntrinsicInfo
() =
default
;
21
22
unsigned
TargetIntrinsicInfo::getIntrinsicID
(
const
Function
*
F
)
const
{
23
const
ValueName
*ValName =
F
->getValueName();
24
if
(!ValName)
25
return
0;
26
return
lookupName
(ValName->
getKeyData
(), ValName->
getKeyLength
());
27
}
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMapEntry.h:102
llvm::StringMapEntryBase::getKeyLength
size_t getKeyLength() const
Definition:
StringMapEntry.h:31
llvm::Function
Definition:
Function.h:59
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:115
llvm::TargetIntrinsicInfo::~TargetIntrinsicInfo
virtual ~TargetIntrinsicInfo()
StringMapEntry.h
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
Generated on Sat Jan 28 2023 10:17:26 for LLVM by
1.8.17