Skip to content

[CIR] Upstream TBAA handling #160387

@andykaylor

Description

@andykaylor

Overview

Upstream support for generating TBAA attributes and lowering to TBAA metadata in LLVM IR.

We should carefully consider how we can reuse/share the classic codegen implementation for generating TBAA metadata.

Suggested minimal test case

// Compile with -O1
void test_int(int *a) {
  a = 1;
}

Existing incubator tests

clang/test/CIR/CodeGen/tbaa-bitinit.c
clang/test/CIR/CodeGen/tbaa-enum.c
clang/test/CIR/CodeGen/tbaa-enum.cpp
clang/test/CIR/CodeGen/tbaa-pointer.cpp
clang/test/CIR/CodeGen/tbaa-scalar.c
clang/test/CIR/CodeGen/tbaa-struct.cpp
clang/test/CIR/CodeGen/tbaa-union.cpp
clang/test/CIR/CodeGen/tbaa-vptr.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClangIRAnything related to the ClangIR project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions