[all-commits] [llvm/llvm-project] a9f709: [clang][bytecode] Use opaque pointers for decl-bas...

Timm Baeder via All-commits all-commits at lists.llvm.org
Thu Sep 10 00:27:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9f7095c26175f363282ed2cdfb52acada3c2d93
      https://github.com/llvm/llvm-project/commit/a9f7095c26175f363282ed2cdfb52acada3c2d93
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Interp.cpp
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ByteCode/InterpBuiltin.cpp
    M clang/lib/AST/ByteCode/InterpHelpers.h
    M clang/lib/AST/ByteCode/MemberPointer.h
    M clang/lib/AST/ByteCode/Opcodes.td
    M clang/lib/AST/ByteCode/Pointer.cpp
    M clang/lib/AST/ByteCode/Pointer.h
    M clang/test/AST/ByteCode/records.cpp
    M clang/test/CodeGen/pr4349.c
    M clang/test/SemaCXX/new-delete.cpp
    M clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
    M clang/unittests/AST/ByteCode/toAPValue.cpp

  Log Message:
  -----------
  [clang][bytecode] Use opaque pointers for decl-based dummy pointers (#220917)

This uses the recently introduced opaque pointers for what we used to
use dummy pointers for, if the base of the pointer is a declaration.

This of course means we see opaque pointers in a lot more places.
However, we don't need to actually allocate anything for their data
anymore, resulting in a lot fewer allocations for such pointers.



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