[all-commits] [llvm/llvm-project] a4b838: [CIR] Add static_local attribute to GlobalOp and G...

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Thu Feb 12 17:43:16 PST 2026


  Branch: refs/heads/users/bcardosolopes/cir-static-local-attr
  Home:   https://github.com/llvm/llvm-project
  Commit: a4b8381aa6af8cb09e493190bae987bc87e30610
      https://github.com/llvm/llvm-project/commit/a4b8381aa6af8cb09e493190bae987bc87e30610
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    A clang/test/CIR/IR/invalid-static-local.cir
    A clang/test/CIR/IR/static-local.cir

  Log Message:
  -----------
  [CIR] Add static_local attribute to GlobalOp and GetGlobalOp

This attribute marks function-local static variables that require
guarded initialization (e.g., C++ static local variables with
non-constant initializers). It is used by CIRGen to communicate
to LoweringPrepare which globals need guard variable emission.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list