mirror-llvm-project/clang/tools
Akshay K 53e16d7708
[CIR] Pointer and vptr width from a CIR-native data-layout entry (#204185)
PointerType and VPtrType have hard-coded sizes and alignments of 64/8
bits. On targets with 32-bit pointers (e.g., nvptx, spirv32), this trips
the record layout builder. Any record containing a pointer hit the
insertPadding assertion (offset >= size)
because the pointer was sized at 8 bytes while the following field was
placed at the AST-mandated 4-byte offset.

 ### Changes:
- CIRGenerator: attaches a CIR-native cir.ptr data-layout entry at
module setup, storing {size-in-bits, abi-align-in-bits} read
  from the target DataLayout (only for the default address space).
- CIRTypes: PointerType reads its size/alignment from that entry
(falling back to 64/8 when absent); VPtrType routes through a cir.ptr so
it picks up the same width.
- LowerToLLVM: strips the cir.ptr entry during CIR→LLVM lowering, since
cir.ptr has no meaning in LLVM IR.
- Unit test: checking 4-byte pointer/vptr layout on nvptx, verified
across CIR, CIR→LLVM.
2026-07-30 16:50:13 -07:00
..
apinotes-test
c-index-test [clang] Suppress glibc C11 extension warning in c-index-test (#193335) 2026-04-22 12:08:09 +01:00
cir-lsp-server [CIR] Centralize dialect registration across CIR tools (#200266) 2026-06-05 20:52:21 -04:00
cir-opt [CIR][OpenMP] Add host op filtering pass to CIR pipeline (#209592) 2026-07-21 20:41:03 -04:00
cir-translate [CIR] Pointer and vptr width from a CIR-native data-layout entry (#204185) 2026-07-30 16:50:13 -07:00
clang-check [Tooling][clang-tools-extra] Consume CommonOptionsParser errors in tools (#193675) 2026-04-24 13:25:26 +08:00
clang-diff
clang-extdef-mapping [NFC][clang] Fix typo and warnings in ClangExtDefMapGen.cpp (#175154) 2026-01-16 18:06:51 +01:00
clang-format [clang-format] Make ignored files unformatted instead of empty. (#170416) 2026-05-04 14:35:38 +10:00
clang-fuzzer [llc] Add -mtune option (#186998) 2026-03-20 10:20:40 +02:00
clang-import-test [Clang] Improve CodeGenerator API a bit (#175239) 2026-01-12 22:46:59 +01:00
clang-installapi Revert "[Support][JSON] Use std::unordered_map for object storage" (#193549) 2026-04-22 10:33:54 -07:00
clang-linker-wrapper clang-linker-wrapper: Use AMDGPU::TargetID for image compatibilty (2) (#209563) 2026-07-15 09:29:04 +02:00
clang-nvlink-wrapper Revert "[clang][sycl][nvlink] Share static library linking in Frontend/Offloading (#201253)" (#202457) 2026-06-08 23:56:34 +00:00
clang-offload-bundler [clang-offload-bundler] Convert std::vector to llvm::SmallVector in OffloadBundlerConfig (#192259) 2026-06-10 08:09:05 +08:00
clang-refactor [Tooling][clang-tools-extra] Consume CommonOptionsParser errors in tools (#193675) 2026-04-24 13:25:26 +08:00
clang-repl [clang-repl] Rework layering of incremental executors. (#175448) 2026-01-12 11:46:26 +02:00
clang-scan-deps [clang][DependencyScanning] Logging Dependency Scanning Events (#195896) 2026-07-16 10:41:22 -07:00
clang-shlib [clang-shlib] Fix linking libclang-cpp on Haiku (#156401) 2025-10-29 20:55:15 -04:00
clang-ssaf-analyzer [clang][ssaf] Shorten directory name to ScalableStaticAnalysis (#204697) 2026-06-24 16:44:57 -07:00
clang-ssaf-format [clang][ssaf] Add MultiArchSharedLibrary data structure (#206854) 2026-07-02 20:11:37 -07:00
clang-ssaf-linker [clang][ssaf] Add static-library create subcommand (#208799) 2026-07-17 00:41:48 +00:00
clang-sycl-linker [clang-sycl-linker] Forward all --ocloc-options occurrences to ocloc (#211075) 2026-07-21 22:59:12 +00:00
diag-build
diagtool [Clang][diagtool] Fix memory leak in ShowEnabledWarnings (#191711) 2026-04-12 14:34:36 -04:00
driver Reapply "[MC][NFC] Make FeatureKV/SubtargetKV pointers private" (#206234) (#206237) 2026-06-27 10:39:44 +00:00
include-mapping Fix tests of lookup table generator (#139463) 2025-05-27 13:45:11 +02:00
libclang [OpenMP] Split UPDATE clause into two: for ATOMIC and for DEPOBJ (#212270) 2026-07-29 07:30:31 -05:00
offload-arch [offload-arch] Fix amdgpu HIP DLL search path on Windows (#209898) 2026-07-22 08:31:14 -07:00
scan-build [clang][tools] Update Python2 code in set-xcode-analyzer to Python3 (#163737) 2025-11-03 13:16:10 +00:00
scan-build-py [clang][scan-build-py] Fix configure scripts when using Python 3.14 (#206792) 2026-07-10 11:38:53 +01:00
scan-view [clang][tools][scan-view] Remove Python2 compatibility code in ScanView.py (#163747) 2025-10-31 10:19:10 +00:00
CMakeLists.txt [clang][ssaf] Add clang-ssaf-analyzer (#196124) 2026-05-06 14:00:52 -07:00