[llvm] [AMDGPU][TTI] Add Target Hook for Instruction Uniformity (getInstructionUniformity) (PR #137639)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 21 23:11:39 PDT 2025
================
@@ -290,6 +290,10 @@ class GCNTTIImpl final : public BasicTTIImplBase<GCNTTIImpl> {
void collectKernelLaunchBounds(
const Function &F,
SmallVectorImpl<std::pair<StringRef, int64_t>> &LB) const override;
+ std::optional<InstructionUniformity>
----------------
ssahasra wrote:
Why do we need the `std::optional`? If sufficient information is not available, we can just return `InstructionUniformity::Default`.
https://github.com/llvm/llvm-project/pull/137639
More information about the llvm-commits
mailing list