[all-commits] [llvm/llvm-project] c8d405: [SPIRV] Get pointer size from datalayout (#66096)
Natalie Chouinard via All-commits
all-commits at lists.llvm.org
Tue Sep 12 08:12:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c8d405323e2f7c4ce6d65168ad8e79f669feece2
https://github.com/llvm/llvm-project/commit/c8d405323e2f7c4ce6d65168ad8e79f669feece2
Author: Natalie Chouinard <1953083+sudonatalie at users.noreply.github.com>
Date: 2023-09-12 (Tue, 12 Sep 2023)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
Log Message:
-----------
[SPIRV] Get pointer size from datalayout (#66096)
Get the pointer size from the datalayout via the TargetMachine and
remove the helper function that hardcoded it. This fixes an issue caused
by mismatched pointer sizes between the two for logical SPIR-V, since
the computePointerSize function still defaulted to 32-bit ptr sizes.
More information about the All-commits
mailing list