LLVM 22.0.0git
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
18
19namespace llvm {
20
21class DataLayout;
22class IRBuilderBase;
23class User;
24class 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.
32 User *GEP, bool NoAssumptions = false);
33
34} // namespace llvm
35
36#endif // LLVM_ANALYSIS_UTILS_LOCAL_H
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
#define LLVM_ABI
Definition Compiler.h:213
Hexagon Common GEP
A parsed version of the target data layout string in and methods for querying it.
Definition DataLayout.h:63
Common base class shared among various IRBuilders.
Definition IRBuilder.h:114
LLVM Value Representation.
Definition Value.h:75
This is an optimization pass for GlobalISel generic memory operations.
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