Stephen Hines | db16918 | 2012-01-05 18:46:36 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012, The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 17 | #ifndef BCC_RS_TRANSFORMS_H |
| 18 | #define BCC_RS_TRANSFORMS_H |
Shih-wei Liao | 7a66e6c | 2012-04-25 04:04:15 -0700 | [diff] [blame] | 19 | |
Shih-wei Liao | 7a66e6c | 2012-04-25 04:04:15 -0700 | [diff] [blame] | 20 | namespace llvm { |
| 21 | class ModulePass; |
Tim Murray | b7bce74 | 2014-11-03 16:17:30 -0800 | [diff] [blame] | 22 | class FunctionPass; |
Shih-wei Liao | 7a66e6c | 2012-04-25 04:04:15 -0700 | [diff] [blame] | 23 | } |
Stephen Hines | db16918 | 2012-01-05 18:46:36 -0800 | [diff] [blame] | 24 | |
| 25 | namespace bcc { |
| 26 | |
Dean De Leo | 4165d29 | 2015-11-25 12:55:21 +0000 | [diff] [blame] | 27 | extern const char BCC_INDEX_VAR_NAME[]; |
| 28 | |
Shih-wei Liao | 7a66e6c | 2012-04-25 04:04:15 -0700 | [diff] [blame] | 29 | llvm::ModulePass * |
Matt Wala | 4e7a506 | 2015-07-30 16:27:51 -0700 | [diff] [blame] | 30 | createRSKernelExpandPass(bool pEnableStepOpt); |
Stephen Hines | db16918 | 2012-01-05 18:46:36 -0800 | [diff] [blame] | 31 | |
Tim Murray | b7bce74 | 2014-11-03 16:17:30 -0800 | [diff] [blame] | 32 | llvm::FunctionPass * |
David Gross | 1d93a19 | 2015-03-25 14:59:27 -0700 | [diff] [blame] | 33 | createRSInvariantPass(); |
| 34 | |
| 35 | llvm::FunctionPass * |
Tim Murray | b7bce74 | 2014-11-03 16:17:30 -0800 | [diff] [blame] | 36 | createRSInvokeHelperPass(); |
| 37 | |
Stephen Hines | 1253c19 | 2014-05-08 18:18:01 -0700 | [diff] [blame] | 38 | llvm::ModulePass * createRSEmbedInfoPass(); |
Stephen Hines | 86a0b79 | 2012-11-06 20:04:47 -0800 | [diff] [blame] | 39 | |
Stephen Hines | 750ee65 | 2015-04-16 16:24:18 -0700 | [diff] [blame] | 40 | llvm::ModulePass * createRSGlobalInfoPass(bool pSkipConstants); |
| 41 | |
Pirama Arumuga Nainar | 9fe081b | 2015-01-27 14:09:19 -0800 | [diff] [blame] | 42 | llvm::ModulePass * createRSScreenFunctionsPass(); |
Pirama Arumuga Nainar | 1e0557a | 2014-12-02 15:02:18 -0800 | [diff] [blame] | 43 | |
Pirama Arumuga Nainar | 9fe081b | 2015-01-27 14:09:19 -0800 | [diff] [blame] | 44 | llvm::ModulePass * createRSIsThreadablePass(); |
Pirama Arumuga Nainar | 1e0557a | 2014-12-02 15:02:18 -0800 | [diff] [blame] | 45 | |
Pirama Arumuga Nainar | 8c24f8d | 2015-03-17 13:11:25 -0700 | [diff] [blame] | 46 | llvm::ModulePass * createRSX86_64CallConvPass(); |
| 47 | |
Dean De Leo | 09c7a41 | 2015-11-25 12:45:45 +0000 | [diff] [blame] | 48 | llvm::ModulePass * createRSAddDebugInfoPass(); |
| 49 | |
Pirama Arumuga Nainar | d2d5ee3 | 2016-04-12 14:04:50 -0700 | [diff] [blame] | 50 | llvm::FunctionPass *createRSX86TranslateGEPPass(); |
| 51 | |
Shih-wei Liao | 7a66e6c | 2012-04-25 04:04:15 -0700 | [diff] [blame] | 52 | } // end namespace bcc |
| 53 | |
Zonr Chang | c72c4dd | 2012-04-12 15:38:53 +0800 | [diff] [blame] | 54 | #endif // BCC_RS_TRANSFORMS_H |