[PATCH] D28760: [AMDGPU] Add target information that is required by tools to metadata
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 11:37:38 PST 2017
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Target/AMDGPU/MCTargetDesc/AMDGPURuntimeMD.cpp:413-428
+ Prog.IsaInfo.WavefrontSize = AMDGPU::IsaInfo::getWavefrontSize(Features);
+ Prog.IsaInfo.LocalMemorySize = AMDGPU::IsaInfo::getLocalMemorySize(Features);
+ Prog.IsaInfo.EUsPerCU = AMDGPU::IsaInfo::getEUsPerCU(Features);
+ Prog.IsaInfo.MaxWavesPerEU = AMDGPU::IsaInfo::getMaxWavesPerEU(Features);
+ Prog.IsaInfo.MaxFlatWorkGroupSize =
+ AMDGPU::IsaInfo::getMaxFlatWorkGroupSize(Features);
+ Prog.IsaInfo.SGPRAllocGranule =
----------------
Assiging Prog.IsaInfo to a reference variable might help avoid some of the line wrapping?
https://reviews.llvm.org/D28760
More information about the llvm-commits
mailing list