LLVM 19.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"
16using 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}
This file defines the StringMapEntry class - it is intended to be a low dependency implementation det...
#define F(x, y, z)
Definition: MD5.cpp:55
size_t getKeyLength() const
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
const char * getKeyData() const
getKeyData - Return the start of the string data that is the key for this value.
virtual unsigned lookupName(const char *Name, unsigned Len) const =0
Look up target intrinsic by name.
virtual unsigned getIntrinsicID(const Function *F) const
Return the target intrinsic ID of a function, or 0.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18