[all-commits] [llvm/llvm-project] 48ff35: [clang] Add support for new loop attribute [[clang...

smanna12 via All-commits all-commits at lists.llvm.org
Mon Nov 20 14:09:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48ff35415c06cdbd9115bfe5318449afddcc7ff5
      https://github.com/llvm/llvm-project/commit/48ff35415c06cdbd9115bfe5318449afddcc7ff5
  Author: smanna12 <soumi.manna at intel.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/CodeGen/CGLoopInfo.cpp
    M clang/lib/CodeGen/CGLoopInfo.h
    M clang/lib/Sema/SemaStmtAttr.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/lib/Sema/TreeTransform.h
    A clang/test/CodeGen/code_align.c
    A clang/test/Sema/code_align.c
    A clang/test/Sema/code_align_ast.c

  Log Message:
  -----------
  [clang] Add support for new loop attribute [[clang::code_align()]] (#70762)

This patch adds support for new loop attribute:
[[clang::code_align(N)]].
This attribute applies to a loop and specifies the byte alignment for a
loop.
The attribute accepts a positive integer constant initialization
expression
indicating the number of bytes for the minimum alignment boundary.
Its value must be a power of 2, between 1 and 4096 (inclusive).




More information about the All-commits mailing list