Polly
22.0.0git
llvm-project
polly
lib
Pass
PollyFunctionPass.cpp
Go to the documentation of this file.
1
//===------ PollyFunctionPass.cpp - Polly function pass ------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
polly/Pass/PollyFunctionPass.h
"
10
11
using namespace
llvm
;
12
using namespace
polly
;
13
14
PreservedAnalyses
PollyFunctionPass::run
(llvm::Function &F,
15
llvm::FunctionAnalysisManager &FAM) {
16
bool
ModifiedIR =
runPollyPass
(F, FAM,
Opts
);
17
18
// Be conservative about preserved analyses.
19
// FIXME: May also need to invalidate/update Module/CGSCC passes, but cannot
20
// reach them within a FunctionPassManager.
21
return
ModifiedIR ? PreservedAnalyses::none() : PreservedAnalyses::all();
22
}
PollyFunctionPass.h
polly::PollyFunctionPass::run
llvm::PreservedAnalyses run(llvm::Function &F, llvm::FunctionAnalysisManager &)
Definition
PollyFunctionPass.cpp:14
polly::PollyFunctionPass::Opts
PollyPassOptions Opts
Definition
PollyFunctionPass.h:28
llvm
Definition
CodeGeneration.h:14
polly
Definition
Canonicalization.h:14
polly::runPollyPass
bool runPollyPass(Function &F, llvm::FunctionAnalysisManager &FAM, PollyPassOptions Opts)
Run Polly and its phases on F.
Generated on
for Polly by
1.14.0