| OLD | NEW |
| 1 //===-- NaCl.h - NaCl Transformations ---------------------------*- C++ -*-===// | 1 //===-- NaCl.h - NaCl Transformations ---------------------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #ifndef LLVM_TRANSFORMS_NACL_H | 10 #ifndef LLVM_TRANSFORMS_NACL_H |
| 11 #define LLVM_TRANSFORMS_NACL_H | 11 #define LLVM_TRANSFORMS_NACL_H |
| 12 | 12 |
| 13 #include "llvm/CodeGen/Passes.h" | 13 #include "llvm/CodeGen/Passes.h" |
| 14 | 14 |
| 15 namespace llvm { | 15 namespace llvm { |
| 16 | 16 |
| 17 class BasicBlockPass; | 17 class BasicBlockPass; |
| 18 class Function; | 18 class Function; |
| 19 class FunctionPass; | 19 class FunctionPass; |
| 20 class FunctionType; | 20 class FunctionType; |
| 21 class Instruction; | 21 class Instruction; |
| 22 class ModulePass; | 22 class ModulePass; |
| 23 class Use; | 23 class Use; |
| 24 class Value; | 24 class Value; |
| 25 | 25 |
| 26 BasicBlockPass *createCombineVectorInstructionsPass(); |
| 26 BasicBlockPass *createConstantInsertExtractElementIndexPass(); | 27 BasicBlockPass *createConstantInsertExtractElementIndexPass(); |
| 27 BasicBlockPass *createExpandGetElementPtrPass(); | 28 BasicBlockPass *createExpandGetElementPtrPass(); |
| 28 BasicBlockPass *createExpandShuffleVectorPass(); | 29 BasicBlockPass *createExpandShuffleVectorPass(); |
| 29 BasicBlockPass *createFixVectorLoadStoreAlignmentPass(); | 30 BasicBlockPass *createFixVectorLoadStoreAlignmentPass(); |
| 30 BasicBlockPass *createPromoteI1OpsPass(); | 31 BasicBlockPass *createPromoteI1OpsPass(); |
| 31 FunctionPass *createExpandConstantExprPass(); | 32 FunctionPass *createExpandConstantExprPass(); |
| 32 FunctionPass *createExpandStructRegsPass(); | 33 FunctionPass *createExpandStructRegsPass(); |
| 33 FunctionPass *createInsertDivideCheckPass(); | 34 FunctionPass *createInsertDivideCheckPass(); |
| 34 FunctionPass *createPromoteIntegersPass(); | 35 FunctionPass *createPromoteIntegersPass(); |
| 35 FunctionPass *createRemoveAsmMemoryPass(); | 36 FunctionPass *createRemoveAsmMemoryPass(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // In order to change a function's type, the function must be | 77 // In order to change a function's type, the function must be |
| 77 // recreated. RecreateFunction() recreates Func with type NewType. | 78 // recreated. RecreateFunction() recreates Func with type NewType. |
| 78 // It copies or moves across everything except the argument values, | 79 // It copies or moves across everything except the argument values, |
| 79 // which the caller must update because the argument types might be | 80 // which the caller must update because the argument types might be |
| 80 // different. | 81 // different. |
| 81 Function *RecreateFunction(Function *Func, FunctionType *NewType); | 82 Function *RecreateFunction(Function *Func, FunctionType *NewType); |
| 82 | 83 |
| 83 } | 84 } |
| 84 | 85 |
| 85 #endif | 86 #endif |
| OLD | NEW |