[NewPM][AMDGPU] Port amdgpu-lower-kernel-attributes
authorArthur Eubanks <aeubanks@google.com>
Mon, 28 Dec 2020 21:48:34 +0000 (13:48 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 29 Dec 2020 18:26:06 +0000 (10:26 -0800)
commit7ecbe0c7a01848fce88dcf3b6977cec866e9938b
tree35a8b05ac2fdd4b50293c3c7cd19d64ab71e3369
parentb980bed34b96a9a85c256b1627ef9339d82829eb
[NewPM][AMDGPU] Port amdgpu-lower-kernel-attributes

And add it to the AMDGPU opt pipeline.

This is a function pass instead of a module pass (like the legacy pass)
because it's getting added to a CGSCCPassManager, and you can't put a
module pass in a CGSCCPassManager.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D93885
llvm/lib/Target/AMDGPU/AMDGPU.h
llvm/lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/test/CodeGen/AMDGPU/reqd-work-group-size.ll
llvm/tools/opt/opt.cpp