[all-commits] [llvm/llvm-project] 4a8539: [TargetMachine] Add `getFlatAddressSpace` to `Targ...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Fri Sep 13 09:45:32 PDT 2024
Branch: refs/heads/users/shiltian/flat-as-query-in-tm
Home: https://github.com/llvm/llvm-project
Commit: 4a85397d6f1a5657f7f4dd6962475f9cb228b866
https://github.com/llvm/llvm-project/commit/4a85397d6f1a5657f7f4dd6962475f9cb228b866
Author: Shilei Tian <i at tianshilei.me>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
M llvm/include/llvm/Analysis/TargetTransformInfo.h
M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
M llvm/include/llvm/CodeGen/BasicTTIImpl.h
M llvm/include/llvm/Target/TargetMachine.h
M llvm/lib/Analysis/TargetTransformInfo.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
M llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
Log Message:
-----------
[TargetMachine] Add `getFlatAddressSpace` to `TargetMachine`
Currently `getFlatAddressSpace` is a member function of TTI, which is not very
convenient, because it prohibits uses w/o a function (thus we can't get TTI).
However, it should really be a `TargetMachine` function. This patch simply adds
it.
Note that the TTI one was not removed, because `InferAddressSpacePass` relies
it to determine whether it is necessary to run the pass. This might not be a
really good way, but we can do a follow-up patch with it if we want.
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