[all-commits] [llvm/llvm-project] c27895: [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:38:51 PST 2026


  Branch: refs/heads/users/bcardosolopes/cir-static-local-attr
  Home:   https://github.com/llvm/llvm-project
  Commit: c27895a48158620ec8c338ce1fc590fed8eefd9f
      https://github.com/llvm/llvm-project/commit/c27895a48158620ec8c338ce1fc590fed8eefd9f
  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