From 43e1eadf263bb8a25bb9ac6705d3ab51eeeab1d0 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Tue, 15 Jul 2014 21:06:48 +0000 Subject: [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 --- polly/lib/CodeGen/LoopGenerators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/LoopGenerators.cpp') 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().markFunctionAsInvalid(FN); + FN->addFnAttr(PollySkipFnAttr); Function::arg_iterator AI = FN->arg_begin(); AI->setName("omp.userContext"); -- cgit v1.2.3