| /llvm-project-15.0.7/llvm/bindings/go/llvm/ |
| H A D | transforms_scalar.go | 21 func (pm PassManager) AddAggressiveDCEPass() { C.LLVMAddAggressiveDCEPass(pm.C) } 24 func (pm PassManager) AddGVNPass() { C.LLVMAddGVNPass(pm.C) } 27 func (pm PassManager) AddJumpThreadingPass() { C.LLVMAddJumpThreadingPass(pm.C) } 28 func (pm PassManager) AddLICMPass() { C.LLVMAddLICMPass(pm.C) } 29 func (pm PassManager) AddLoopDeletionPass() { C.LLVMAddLoopDeletionPass(pm.C) } 30 func (pm PassManager) AddLoopRotatePass() { C.LLVMAddLoopRotatePass(pm.C) } 31 func (pm PassManager) AddLoopUnrollPass() { C.LLVMAddLoopUnrollPass(pm.C) } 32 func (pm PassManager) AddMemCpyOptPass() { C.LLVMAddMemCpyOptPass(pm.C) } 34 func (pm PassManager) AddReassociatePass() { C.LLVMAddReassociatePass(pm.C) } 35 func (pm PassManager) AddSCCPPass() { C.LLVMAddSCCPPass(pm.C) } [all …]
|
| H A D | transforms_ipo.go | 28 func (pm PassManager) AddConstantMergePass() { C.LLVMAddConstantMergePass(pm.C) } 29 func (pm PassManager) AddDeadArgEliminationPass() { C.LLVMAddDeadArgEliminationPass(pm.C) } 30 func (pm PassManager) AddFunctionAttrsPass() { C.LLVMAddFunctionAttrsPass(pm.C) } 31 func (pm PassManager) AddFunctionInliningPass() { C.LLVMAddFunctionInliningPass(pm.C) } 32 func (pm PassManager) AddGlobalDCEPass() { C.LLVMAddGlobalDCEPass(pm.C) } 33 func (pm PassManager) AddGlobalOptimizerPass() { C.LLVMAddGlobalOptimizerPass(pm.C) } 34 func (pm PassManager) AddPruneEHPass() { C.LLVMAddPruneEHPass(pm.C) } 35 func (pm PassManager) AddIPSCCPPass() { C.LLVMAddIPSCCPPass(pm.C) } 36 func (pm PassManager) AddInternalizePass(allButMain bool) { 37 C.LLVMAddInternalizePass(pm.C, boolToUnsigned(allButMain)) [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Pipelines/ |
| H A D | SparseTensorPipelines.cpp | 55 pm.addPass( in buildSparseCompiler() 61 pm.addPass(createSparseTensorConversionPass( in buildSparseCompiler() 63 pm.addPass(createDenseBufferizationPass( in buildSparseCompiler() 65 pm.addNestedPass<func::FuncOp>( in buildSparseCompiler() 72 pm.addPass(createLowerAffinePass()); in buildSparseCompiler() 74 pm.addPass(createMemRefToLLVMPass()); in buildSparseCompiler() 77 pm.addPass(createConvertMathToLibmPass()); in buildSparseCompiler() 78 pm.addPass(createConvertComplexToLibmPass()); in buildSparseCompiler() 79 pm.addPass(createConvertComplexToLLVMPass()); in buildSparseCompiler() 80 pm.addPass(createConvertFuncToLLVMPass()); in buildSparseCompiler() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Tools/ |
| H A D | CLOptions.inc | 81 pm.addPass(ctor()); 88 pm.addNestedPass<OP>(ctor()); 163 pm.addPass(mlir::createCSEPass()); 164 fir::addAVC(pm); 172 fir::addMemoryAllocationOpt(pm); 177 pm.addPass( 183 fir::addCfgConversionPass(pm); 193 fir::addBoxedProcedurePass(pm); 195 fir::addCodeGenRewritePass(pm); 196 fir::addTargetRewritePass(pm); [all …]
|
| /llvm-project-15.0.7/mlir/test/CAPI/ |
| H A D | pass.c | 64 mlirPassManagerDestroy(pm); in testRunPassOnModule() 106 mlirPassManagerDestroy(pm); in testRunPassOnNestedModule() 124 mlirPassManagerDestroy(pm); in testRunPassOnNestedModule() 166 mlirPassManagerDestroy(pm); in testPrintPassPipeline() 175 mlirPassManagerGetAsOpPassManager(pm), in testParsePassPipeline() 206 mlirPassManagerDestroy(pm); in testParsePassPipeline() 325 mlirPassManagerDestroy(pm); in testExternalPass() 376 mlirPassManagerDestroy(pm); in testExternalPass() 422 mlirPassManagerDestroy(pm); in testExternalPass() 471 mlirPassManagerDestroy(pm); in testExternalPass() [all …]
|
| H A D | execution_engine.c | 34 MlirPassManager pm = mlirPassManagerCreate(ctx); in lowerModuleToLLVM() local 36 pm, mlirStringRefCreateFromCString("func.func")); in lowerModuleToLLVM() 37 mlirPassManagerAddOwnedPass(pm, mlirCreateConversionConvertFuncToLLVM()); in lowerModuleToLLVM() 40 MlirLogicalResult status = mlirPassManagerRun(pm, module); in lowerModuleToLLVM() 45 mlirPassManagerDestroy(pm); in lowerModuleToLLVM()
|
| /llvm-project-15.0.7/mlir/test/python/ |
| H A D | pass_manager.py | 23 pm = PassManager() 24 pm_capsule = pm._CAPIPtr 26 pm._testing_release() 38 pm = PassManager.parse("builtin.module(func.func(not-existing-pass{json=false}))") 48 pm = PassManager.parse("builtin.module(func.func(print-op-stats{json=false}))") 50 log("Roundtrip: ", pm) 58 pm = PassManager.parse("unknown-pass") 72 pm = PassManager.parse("func.func(normalize-memrefs)") 86 pm = PassManager.parse("print-op-stats{json=false}") 88 pm.run(module)
|
| /llvm-project-15.0.7/clang/test/CXX/expr/expr.mptr.oper/ |
| H A D | p5.cpp | 10 void test_object_cvquals(void (X0::*pm)(), in test_object_cvquals() argument 22 (p->*pm)(); in test_object_cvquals() 27 …(pc->*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attrib… in test_object_cvquals() 32 …(pv->*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attrib… in test_object_cvquals() 37 …(pcv->*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attri… in test_object_cvquals() 42 (o.*pm)(); in test_object_cvquals() 47 …(oc.*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attribu… in test_object_cvquals() 52 …(ov.*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attribu… in test_object_cvquals() 57 …(ocv.*pm)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attrib… in test_object_cvquals()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalgPass.cpp | 69 void mlir::tosa::addTosaToLinalgPasses(OpPassManager &pm, in addTosaToLinalgPasses() argument 73 pm.addNestedPass<func::FuncOp>(tosa::createTosaOptionalDecompositions()); in addTosaToLinalgPasses() 74 pm.addNestedPass<func::FuncOp>(createCanonicalizerPass()); in addTosaToLinalgPasses() 76 pm.addNestedPass<func::FuncOp>(tosa::createTosaMakeBroadcastablePass()); in addTosaToLinalgPasses() 77 pm.addNestedPass<func::FuncOp>(tosa::createTosaToLinalgNamed()); in addTosaToLinalgPasses() 78 pm.addNestedPass<func::FuncOp>(createCanonicalizerPass()); in addTosaToLinalgPasses() 80 pm.addNestedPass<func::FuncOp>(tosa::createTosaLayerwiseConstantFoldPass()); in addTosaToLinalgPasses() 81 pm.addNestedPass<func::FuncOp>(tosa::createTosaMakeBroadcastablePass()); in addTosaToLinalgPasses() 82 pm.addNestedPass<func::FuncOp>(tosa::createTosaToLinalg()); in addTosaToLinalgPasses()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/Transforms/ |
| H A D | CodegenStrategy.h | 28 virtual void addToPassPipeline(OpPassManager &pm, 40 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 57 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 74 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 90 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 107 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 121 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 123 pm.addPass(createLinalgStrategyDecomposePass(m)); in addToPassPipeline() 137 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() 161 void addToPassPipeline(OpPassManager &pm, in addToPassPipeline() [all …]
|
| /llvm-project-15.0.7/mlir/test/lib/Pass/ |
| H A D | TestDynamicPipeline.cpp | 32 OpPassManager pm(ModuleOp::getOperationName(), in getDependentDialects() local 34 (void)parsePassPipeline(pipeline, pm, llvm::errs()); in getDependentDialects() 35 pm.getDependentDialects(registry); in getDependentDialects() 62 OpPassManager pm(currentOp->getName().getIdentifier(), in runOnOperation() local 64 (void)parsePassPipeline(pipeline, pm, llvm::errs()); in runOnOperation() 69 if (!failed(runPipeline(pm, currentOp->getParentOp()))) in runOnOperation() 82 if (failed(runPipeline(pm, op))) in runOnOperation() 87 if (failed(runPipeline(pm, currentOp))) in runOnOperation()
|
| H A D | TestPassManager.cpp | 190 static void testNestedPipeline(OpPassManager &pm) { in testNestedPipeline() argument 193 auto &modulePM = pm.nest<ModuleOp>(); in testNestedPipeline() 200 auto &functionPM = pm.nest<func::FuncOp>(); in testNestedPipeline() 204 static void testNestedPipelineTextual(OpPassManager &pm) { in testNestedPipelineTextual() argument 205 (void)parsePassPipeline("test-pm-nested-pipeline", pm); in testNestedPipelineTextual() 234 [](OpPassManager &pm) { in registerPassManagerTestPass() argument 235 pm.printAsTextualPipeline(llvm::errs()); in registerPassManagerTestPass() 243 [](OpPassManager &pm, const TestOptionsPass::Options &options) { in registerPassManagerTestPass() argument 244 pm.addPass(std::make_unique<TestOptionsPass>(options)); in registerPassManagerTestPass()
|
| /llvm-project-15.0.7/polly/test/Support/ |
| H A D | defaultpipelines.ll | 2 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -O0 -S < %s | FileCheck %s --check-prefix=CHECK --che… 3 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -O1 -S < %s | FileCheck %s --check-prefix=CHECK --che… 4 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -O2 -S < %s | FileCheck %s --check-prefix=CHECK --che… 5 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -O3 -S < %s | FileCheck %s --check-prefix=CHECK --che… 6 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -Os -S < %s | FileCheck %s --check-prefix=CHECK --che… 7 ; RUN: opt %loadPolly -enable-new-pm=0 -polly -Oz -S < %s | FileCheck %s --check-prefix=CHECK --che… 10 ; RUN: opt %loadNPMPolly -enable-new-pm=1 -polly -O0 -S < %s | FileCheck %s --check-prefix=CHECK --… 11 ; RUN: opt %loadNPMPolly -enable-new-pm=1 -polly -O1 -S < %s | FileCheck %s --check-prefix=CHECK --… 12 ; RUN: opt %loadNPMPolly -enable-new-pm=1 -polly -O2 -S < %s | FileCheck %s --check-prefix=CHECK --… 13 ; RUN: opt %loadNPMPolly -enable-new-pm=1 -polly -O3 -S < %s | FileCheck %s --check-prefix=CHECK --… [all …]
|
| /llvm-project-15.0.7/mlir/lib/Pass/ |
| H A D | PassManagerOptions.cpp | 63 void addPrinterInstrumentation(PassManager &pm); 87 void PassManagerOptions::addPrinterInstrumentation(PassManager &pm) { in addPrinterInstrumentation() argument 123 pm.enableIRPrinting(shouldPrintBeforePass, shouldPrintAfterPass, in addPrinterInstrumentation() 133 void mlir::applyPassManagerCLOptions(PassManager &pm) { in applyPassManagerCLOptions() argument 139 pm.enableCrashReproducerGeneration(options->reproducerFile, in applyPassManagerCLOptions() 144 pm.enableStatistics(options->passStatisticsDisplayMode); in applyPassManagerCLOptions() 147 options->addPrinterInstrumentation(pm); in applyPassManagerCLOptions() 150 void mlir::applyDefaultTimingPassManagerCLOptions(PassManager &pm) { in applyDefaultTimingPassManagerCLOptions() argument 155 pm.enableTiming(std::move(tm)); in applyDefaultTimingPassManagerCLOptions()
|
| H A D | PassRegistry.cpp | 37 return [=](OpPassManager &pm, StringRef options, in buildDefaultRegistryFn() 42 Optional<StringRef> pmOpName = pm.getOpName(); in buildDefaultRegistryFn() 51 pm.addPass(std::move(pass)); in buildDefaultRegistryFn() 418 pm.printAsTextualPipeline(outs()); in printOptionDiff() 451 addToPipeline(OpPassManager &pm, 528 OpPassManager &pm, in addToPipeline() argument 530 return addToPipeline(pipeline, pm, errorHandler); in addToPipeline() 702 OpPassManager pm(opName); in parsePassPipeline() local 705 return pm; in parsePassPipeline() 920 OpPassManager &pm, in addToPipeline() argument [all …]
|
| H A D | Pass.cpp | 60 [&](OpPassManager &pm) { in printAsTextualPipeline() argument 61 os << pm.getOpAnchorName() << "("; in printAsTextualPipeline() 62 pm.printAsTextualPipeline(os); in printAsTextualPipeline() 210 for (auto &pm : adaptor->getPassManagers()) in finalizePassList() local 384 for (const Pass &pass : pm.getPasses()) in registerDialectsForPipeline() 533 for (Pass &pass : pm.getPasses()) in runPipeline() 569 for (auto &pm : mgrs) in getDependentDialects() local 570 pm.getDependentDialects(dialects); in getDependentDialects() 576 auto isGenericPM = [&](OpPassManager &pm) { return !pm.getOpName(); }; in tryMergeInto() argument 609 for (auto &pm : mgrs) { in tryMergeInto() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Regex.cpp | 99 SmallVector<llvm_regmatch_t, 8> pm; in match() local 100 pm.resize(nmatch > 0 ? nmatch : 1); in match() 101 pm[0].rm_so = 0; in match() 102 pm[0].rm_eo = String.size(); in match() 104 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND); in match() 122 if (pm[i].rm_so == -1) { in match() 127 assert(pm[i].rm_eo >= pm[i].rm_so); in match() 128 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match() 129 pm[i].rm_eo-pm[i].rm_so)); in match()
|
| /llvm-project-15.0.7/mlir/unittests/Pass/ |
| H A D | PassManagerTest.cpp | 71 PassManager pm(&context); in TEST() local 72 pm.addNestedPass<func::FuncOp>(std::make_unique<AnnotateFunctionPass>()); in TEST() 73 LogicalResult result = pm.run(module.get()); in TEST() 126 PassManager pm(&context); in TEST() local 127 pm.nest("invalid_op").addPass(std::make_unique<InvalidPass>()); in TEST() 128 LogicalResult result = pm.run(module.get()); in TEST() 136 pm.clear(); in TEST() 137 result = pm.run(module.get()); in TEST() 141 ASSERT_DEATH(pm.addPass(std::make_unique<InvalidPass>()), ""); in TEST()
|
| /llvm-project-15.0.7/flang/tools/tco/ |
| H A D | tco.cpp | 101 mlir::PassManager pm(&context, mlir::OpPassManager::Nesting::Implicit); in compileFIR() local 102 pm.enableVerifier(/*verifyPasses=*/true); in compileFIR() 103 mlir::applyPassManagerCLOptions(pm); in compileFIR() 109 mlir::emitError(mlir::UnknownLoc::get(pm.getContext())) << msg; in compileFIR() 112 if (mlir::failed(passPipeline.addToPipeline(pm, errorHandler))) in compileFIR() 116 fir::createMLIRToLLVMPassPipeline(pm, llvm::OptimizationLevel::O2); in compileFIR() 117 fir::addLLVMDialectToLLVMPass(pm, out.os()); in compileFIR() 121 if (mlir::succeeded(pm.run(*owningRef))) { in compileFIR()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | sme-intrinsics-mops.ll | 4 define void @bfmops(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x bfloat> %zn, <vscal… 13 define void @fmops(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x half> %zn, <vscale x… 22 define void @smops_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vscal… 31 define void @smops_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale … 40 define void @umops_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vscal… 49 define void @umops_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale … 58 define void @fmops_s(<vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vscale x 4 x float> %zn, <vscal… 76 define void @sumops_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vsca… 85 define void @sumops_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale… 94 define void @usmops_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vsca… [all …]
|
| H A D | sme-intrinsics-mopa.ll | 4 define void @bfmopa(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x bfloat> %zn, <vscal… 13 define void @fmopa(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x half> %zn, <vscale x… 22 define void @smopa_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vscal… 31 define void @smopa_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale … 40 define void @umopa_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vscal… 49 define void @umopa_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale … 58 define void @fmopa_s(<vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vscale x 4 x float> %zn, <vscal… 76 define void @sumopa_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vsca… 85 define void @sumopa_d(<vscale x 8 x i1> %pn, <vscale x 8 x i1> %pm, <vscale x 8 x i16> %zn, <vscale… 94 define void @usmopa_s(<vscale x 16 x i1> %pn, <vscale x 16 x i1> %pm, <vscale x 16 x i8> %zn, <vsca… [all …]
|
| H A D | sme-intrinsics-add.ll | 4 define void @addha_s(<vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vscale x 4 x i32> %zn) { 9 …call void @llvm.aarch64.sme.addha.nxv4i32(i64 0, <vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vs… 13 define void @addva_s(<vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vscale x 4 x i32> %zn) { 18 …call void @llvm.aarch64.sme.addva.nxv4i32(i64 3, <vscale x 4 x i1> %pn, <vscale x 4 x i1> %pm, <vs… 22 define void @addha_d(<vscale x 2 x i1> %pn, <vscale x 2 x i1> %pm, <vscale x 2 x i64> %zn) { 27 …call void @llvm.aarch64.sme.addha.nxv2i64(i64 0, <vscale x 2 x i1> %pn, <vscale x 2 x i1> %pm, <vs… 31 define void @addva_d(<vscale x 2 x i1> %pn, <vscale x 2 x i1> %pm, <vscale x 2 x i64> %zn) { 36 …call void @llvm.aarch64.sme.addva.nxv2i64(i64 7, <vscale x 2 x i1> %pn, <vscale x 2 x i1> %pm, <vs…
|
| /llvm-project-15.0.7/mlir/include/mlir/Pass/ |
| H A D | PassRegistry.h | 54 addToPipeline(OpPassManager &pm, StringRef options, in addToPipeline() argument 58 return builder(pm, options, errorHandler); in addToPipeline() 172 [builder](OpPassManager &pm, StringRef optionsStr, in PassPipelineRegistration() 177 builder(pm, options); in PassPipelineRegistration() 195 [builder](OpPassManager &pm, StringRef optionsStr, 199 builder(pm); 209 LogicalResult parsePassPipeline(StringRef pipeline, OpPassManager &pm, 252 addToPipeline(OpPassManager &pm, 288 void attachPassReproducerAsmResource(ParserConfig &config, PassManager &pm,
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-opt/ |
| H A D | MlirOptMain.cpp | 61 PassManager pm(context, OpPassManager::Nesting::Implicit); in performActions() local 62 pm.enableVerifier(verifyPasses); in performActions() 63 applyPassManagerCLOptions(pm); in performActions() 64 pm.enableTiming(timing); in performActions() 69 attachPassReproducerAsmResource(config, pm, wasThreadingEnabled); in performActions() 80 if (failed(passManagerSetupFn(pm))) in performActions() 84 if (failed(pm.run(*module))) in performActions() 180 auto passManagerSetupFn = [&](PassManager &pm) { in MlirOptMain() argument 182 emitError(UnknownLoc::get(pm.getContext())) << msg; in MlirOptMain() 185 return passPipeline.addToPipeline(pm, errorHandler); in MlirOptMain()
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | new-pm-pseudo-probe.ll | 1 ; RUN: opt -S -passes='default<O1>' -new-pm-pseudo-probe-for-profiling -debug-pass-manager < %s 2>&… 2 ; RUN: opt -S -passes='default<O2>' -new-pm-pseudo-probe-for-profiling -debug-pass-manager < %s 2>&… 3 ; RUN: opt -S -passes='thinlto-pre-link<O1>' -new-pm-pseudo-probe-for-profiling -debug-pass-manager… 4 ; RUN: opt -S -passes='thinlto-pre-link<O2>' -new-pm-pseudo-probe-for-profiling -debug-pass-manager… 10 ;; Check the SampleProfileProbePass is enabled under the -new-pm-pseudo-probe-for-profiling switch.
|