summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/LoopGenerators.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@codeaurora.org>2014-07-15 21:06:48 +0000
committerJohannes Doerfert <jdoerfert@codeaurora.org>2014-07-15 21:06:48 +0000
commit43e1eadf263bb8a25bb9ac6705d3ab51eeeab1d0 (patch)
tree8fbcaa25b9b7902c9230932bd525b1dc1408f5fc /polly/lib/CodeGen/LoopGenerators.cpp
parent87e92eb4391463518b69d6edfef01d0d82224fdc (diff)
downloadbcm5719-llvm-43e1eadf263bb8a25bb9ac6705d3ab51eeeab1d0.tar.gz
bcm5719-llvm-43e1eadf263bb8a25bb9ac6705d3ab51eeeab1d0.zip
[Refactor] Use attributes to mark function as invalid for polly
+ Test case annotated with the new attribute + Modified test case to check if subfunctions are annotated llvm-svn: 213093
Diffstat (limited to 'polly/lib/CodeGen/LoopGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index 52a47ef578b..432960d2b85 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -229,7 +229,7 @@ Function *OMPGenerator::createSubfunctionDefinition() {
Function *FN = Function::Create(FT, Function::InternalLinkage,
F->getName() + ".omp_subfn", M);
// Do not run any polly pass on the new function.
- P->getAnalysis<polly::ScopDetection>().markFunctionAsInvalid(FN);
+ FN->addFnAttr(PollySkipFnAttr);
Function::arg_iterator AI = FN->arg_begin();
AI->setName("omp.userContext");
OpenPOWER on IntegriCloud