[PATCH] D31804: [AMDGPU] Generate range metadata for workitem id

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 14:01:35 PDT 2017


rampitec marked 2 inline comments as done.
rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUSubtarget.h:517
+  /// Creates value range metadata on an workitemid.* inrinsic call or load.
+  bool MakeLIDRangeMetadata(Instruction *I) const;
 };
----------------
arsenm wrote:
> Putting this in the subtarget is a weird place. Why not leave it in the pass?
I need to access it from the intrinsic lowering and from promote alloca, so I needed some kind of utility function.


Repository:
  rL LLVM

https://reviews.llvm.org/D31804





More information about the llvm-commits mailing list