Allow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
be invoked on a single instruction at a time, for use in other passes. llvm-svn: 3751
This commit is contained in:
parent
5c363ba209
commit
e3a75d6b33
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
class Pass;
|
class Pass;
|
||||||
class TargetData;
|
class TargetData;
|
||||||
|
class BasicBlock;
|
||||||
|
class GetElementPtrInst;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
|
|
@ -60,9 +62,14 @@ Pass *createAggressiveDCEPass();
|
||||||
// instructions (using getelementpr and cast) so that each instruction has at
|
// instructions (using getelementpr and cast) so that each instruction has at
|
||||||
// most one index (except structure references, which need an extra leading
|
// most one index (except structure references, which need an extra leading
|
||||||
// index of [0]).
|
// index of [0]).
|
||||||
//
|
|
||||||
|
// This pass decomposes all multi-dimensional references in a function.
|
||||||
Pass *createDecomposeMultiDimRefsPass();
|
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…
Reference in New Issue