Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 1 | // Copyright 2019 The Clspv Authors. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | #include "Passes.h" |
| 16 | |
| 17 | namespace llvm { |
| 18 | |
| 19 | void initializeClspvPasses(PassRegistry &r) { |
alan-baker | 04f3a95 | 2020-03-24 10:39:53 -0400 | [diff] [blame] | 20 | initializeAddFunctionAttributesPassPass(r); |
Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 21 | initializeAllocateDescriptorsPassPass(r); |
| 22 | initializeClusterModuleScopeConstantVarsPass(r); |
| 23 | initializeClusterPodKernelArgumentsPassPass(r); |
| 24 | initializeDirectResourceAccessPassPass(r); |
Kévin Petit | bbbda97 | 2020-03-03 19:16:31 +0000 | [diff] [blame] | 25 | initializeDeclarePushConstantsPassPass(r); |
Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 26 | initializeDefineOpenCLWorkItemBuiltinsPassPass(r); |
alan-baker | 9580aef | 2020-01-07 22:31:48 -0500 | [diff] [blame] | 27 | initializeFixupStructuredCFGPassPass(r); |
Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 28 | initializeFunctionInternalizerPassPass(r); |
| 29 | initializeHideConstantLoadsPassPass(r); |
| 30 | initializeUnhideConstantLoadsPassPass(r); |
| 31 | initializeInlineEntryPointsPassPass(r); |
| 32 | initializeInlineFuncWithPointerBitCastArgPassPass(r); |
| 33 | initializeInlineFuncWithPointerToFunctionArgPassPass(r); |
| 34 | initializeInlineFuncWithSingleCallSitePassPass(r); |
| 35 | initializeOpenCLInlinerPassPass(r); |
| 36 | initializeRemoveUnusedArgumentsPass(r); |
| 37 | initializeReorderBasicBlocksPassPass(r); |
| 38 | initializeReplaceLLVMIntrinsicsPassPass(r); |
| 39 | initializeReplaceOpenCLBuiltinPassPass(r); |
| 40 | initializeReplacePointerBitcastPassPass(r); |
| 41 | initializeRewriteInsertsPassPass(r); |
| 42 | initializeScalarizePassPass(r); |
| 43 | initializeShareModuleScopeVariablesPassPass(r); |
| 44 | initializeSignedCompareFixupPassPass(r); |
| 45 | initializeSimplifyPointerBitcastPassPass(r); |
| 46 | initializeSplatArgPassPass(r); |
| 47 | initializeSplatSelectConditionPassPass(r); |
alan-baker | f67468c | 2019-11-25 15:51:49 -0500 | [diff] [blame] | 48 | initializeSpecializeImageTypesPassPass(r); |
Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 49 | initializeUBOTypeTransformPassPass(r); |
| 50 | initializeUndoBoolPassPass(r); |
| 51 | initializeUndoByvalPassPass(r); |
| 52 | initializeUndoGetElementPtrConstantExprPassPass(r); |
alan-baker | 1356838 | 2020-04-02 17:29:27 -0400 | [diff] [blame^] | 53 | initializeUndoInstCombinePassPass(r); |
Diego Novillo | a4c44fa | 2019-04-11 10:56:15 -0400 | [diff] [blame] | 54 | initializeUndoSRetPassPass(r); |
| 55 | initializeUndoTranslateSamplerFoldPassPass(r); |
| 56 | initializeUndoTruncatedSwitchConditionPassPass(r); |
| 57 | initializeZeroInitializeAllocasPassPass(r); |
| 58 | } |
| 59 | |
| 60 | } // namespace llvm |