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

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Thu Feb 12 18:09:37 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75f738b0b2a15281c6f285380ea947e973a6e02f
      https://github.com/llvm/llvm-project/commit/75f738b0b2a15281c6f285380ea947e973a6e02f
  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 (#179826)

This attribute marks function-local static variables that require
guarded initialization (e.g., C++ static local variables with
non-constant initializers).

It will be used by CIRGen to communicate to LoweringPrepare which globals need guard variable emission.

This PR only adds the attribute and tests, CIRGen is in the next one.



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