mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Decompose* is V9 specific, make it internal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8226db66a2
commit
26818012e3
@ -15,7 +15,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
#include "SparcV9Internals.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Constant.h"
|
||||
|
@ -29,6 +29,7 @@ namespace llvm {
|
||||
class LiveRange;
|
||||
class SparcV9TargetMachine;
|
||||
class ModulePass;
|
||||
class GetElementPtrInst;
|
||||
|
||||
enum SparcV9InstrSchedClass {
|
||||
SPARC_NONE, /* Instructions with no scheduling restrictions */
|
||||
@ -97,6 +98,19 @@ FunctionPass *createStackSlotsPass(const TargetMachine &TM);
|
||||
///
|
||||
FunctionPass *createPreSelectionPass(const TargetMachine &TM);
|
||||
|
||||
// DecomposeMultiDimRefs - Convert multi-dimensional references consisting of
|
||||
// any combination of 2 or more array and structure indices into a sequence of
|
||||
// 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.
|
||||
FunctionPass *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);
|
||||
|
||||
/// Peephole optimization pass operating on machine code
|
||||
///
|
||||
FunctionPass *createPeepholeOptsPass(const TargetMachine &TM);
|
||||
|
Loading…
Reference in New Issue
Block a user