forked from OSchip/llvm-project
[MLIR][GPU] Update GPUToROCDL to account for ControlFlow dialect
The conversion to the new ControlFlow dialect didn't change the GPUToROCDL pass - this commit fixes this issue. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D119188
This commit is contained in:
parent
34e131b0f2
commit
24a1869d00
|
@ -11,6 +11,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h"
|
||||
#include "mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h"
|
||||
|
||||
#include "mlir/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.h"
|
||||
|
@ -78,6 +79,7 @@ struct LowerGpuOpsToROCDLOpsPass
|
|||
llvmPatterns);
|
||||
populateVectorToLLVMConversionPatterns(converter, llvmPatterns);
|
||||
populateVectorToROCDLConversionPatterns(converter, llvmPatterns);
|
||||
cf::populateControlFlowToLLVMConversionPatterns(converter, llvmPatterns);
|
||||
populateStdToLLVMConversionPatterns(converter, llvmPatterns);
|
||||
populateMemRefToLLVMConversionPatterns(converter, llvmPatterns);
|
||||
populateGpuToROCDLConversionPatterns(converter, llvmPatterns, runtime);
|
||||
|
|
Loading…
Reference in New Issue