[PATCH] D86841: [clang] Adds noprogress attribute deduction for infinite loops
    Roman Lebedev via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Aug 29 13:44:45 PDT 2020
    
    
  
lebedev.ri added a comment.
Does that wording apply to both the C and C++ (OpenCL?)?
Regardless, might be good to test that.
================
Comment at: clang/test/CodeGen/attr-noprogress.c:1-2
+// RUN: %clang_cc1 -S -emit-llvm %s -o - | grep " noprogress " | count 1
+// RUN: %clang_cc1 -S -emit-llvm %s -o - | grep llvm.loop.noprogress | count 1
+
----------------
Please just FileCheck the expected output. Bonus points for using `llvm/utils/update_cc_test_checks.py`
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86841/new/
https://reviews.llvm.org/D86841
    
    
More information about the cfe-commits
mailing list