LLVM
22.0.0git
include
llvm
Analysis
Utils
Local.h
Go to the documentation of this file.
1
//===- Local.h - Functions to perform local transformations -----*- C++ -*-===//
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 family of functions perform various local transformations to the
10
// program.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_ANALYSIS_UTILS_LOCAL_H
15
#define LLVM_ANALYSIS_UTILS_LOCAL_H
16
17
#include "
llvm/Support/Compiler.h
"
18
19
namespace
llvm
{
20
21
class
DataLayout
;
22
class
IRBuilderBase
;
23
class
User
;
24
class
Value
;
25
26
/// Given a getelementptr instruction/constantexpr, emit the code necessary to
27
/// compute the offset from the base pointer (without adding in the base
28
/// pointer). Return the result as a signed integer of intptr size.
29
/// When NoAssumptions is true, no assumptions about index computation not
30
/// overflowing is made.
31
LLVM_ABI
Value
*
emitGEPOffset
(
IRBuilderBase
*Builder,
const
DataLayout
&
DL
,
32
User
*
GEP
,
bool
NoAssumptions =
false
);
33
34
}
// namespace llvm
35
36
#endif
// LLVM_ANALYSIS_UTILS_LOCAL_H
DL
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Definition
ARMSLSHardening.cpp:73
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
GEP
Hexagon Common GEP
Definition
HexagonCommonGEP.cpp:164
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it.
Definition
DataLayout.h:63
llvm::IRBuilderBase
Common base class shared among various IRBuilders.
Definition
IRBuilder.h:114
llvm::User
Definition
User.h:44
llvm::Value
LLVM Value Representation.
Definition
Value.h:75
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::emitGEPOffset
LLVM_ABI Value * emitGEPOffset(IRBuilderBase *Builder, const DataLayout &DL, User *GEP, bool NoAssumptions=false)
Given a getelementptr instruction/constantexpr, emit the code necessary to compute the offset from th...
Definition
Local.cpp:22
Generated on
for LLVM by
1.14.0