LLVM 23.0.0git
InsertCodePrefetch.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file contains common utilities for code prefetch insertion.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CODEGEN_INSERTCODEPREFETCH_H
15#define LLVM_CODEGEN_INSERTCODEPREFETCH_H
16
18#include "llvm/ADT/StringRef.h"
20
21namespace llvm {
22
23// Returns the symbol name for a prefetch target at function `FunctionName`,
24// basic block `BBID` and callsite index `CallsiteIndex`.
26 const UniqueBBID &BBID,
27 unsigned CallsiteIndex);
28
29} // end namespace llvm
30
31#endif // LLVM_CODEGEN_INSERTCODEPREFETCH_H
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
Definition SmallString.h:26
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
This is an optimization pass for GlobalISel generic memory operations.
SmallString< 128 > getPrefetchTargetSymbolName(StringRef FunctionName, const UniqueBBID &BBID, unsigned CallsiteIndex)