mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Allow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
be invoked on a single instruction at a time, for use in other passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8f1df6446
commit
be376cf6d4
@ -10,6 +10,8 @@
|
||||
|
||||
class Pass;
|
||||
class TargetData;
|
||||
class BasicBlock;
|
||||
class GetElementPtrInst;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
@ -60,9 +62,14 @@ Pass *createAggressiveDCEPass();
|
||||
// instructions (using getelementpr and cast) so that each instruction has at
|
||||
// most one index (except structure references, which need an extra leading
|
||||
// index of [0]).
|
||||
//
|
||||
|
||||
// This pass decomposes all multi-dimensional references in a function.
|
||||
Pass *createDecomposeMultiDimRefsPass();
|
||||
|
||||
// This function decomposes a single instance of such a reference.
|
||||
// Return value: true if the instruction was replaced; false otherwise.
|
||||
//
|
||||
bool DecomposeArrayRef(GetElementPtrInst* GEP);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user