[llvm] [AMDGPU][TTI] Add Target Hook for Instruction Uniformity (getInstructionUniformity) (PR #137639)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 25 01:22:09 PDT 2025
================
@@ -407,6 +408,11 @@ template <typename ContextT> class GenericUniformityAnalysisImpl {
void recordTemporalDivergence(ConstValueRefT, const InstructionT *,
const CycleT *);
+ bool isAnyOperandUniform(const InstructionT &Instr) const;
+
+ /// \brief keep track of special target intrinsics that can be proven uniform.
+ void addSpecialUniformIntrinsic(const InstructionT &Instr);
----------------
PankajDwivedi-25 wrote:
The term `special` means here that `intrinsic can be uniform` though not all of its operands are uniform.
Right, I am also not convinced of this name. will rename it later based on refined functionality.
https://github.com/llvm/llvm-project/pull/137639
More information about the llvm-commits
mailing list