Private and firstprivate recipes can now be created and populated through the createAndPopulate method. The populating of recipe bodies is done through using the PointerLikeType and MappableType interfaces (with MappableType support still in progress). The existing create() API remains available for cases where dialects need manual recipe population (e.g., for frontend-specific semantics like default value initialization or constructor calls). Testing exercises the new API with memref types.
28 lines
933 B
C++
28 lines
933 B
C++
//===- TestOpenACC.cpp - OpenACC Test Registration ------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains unified registration for all OpenACC test passes.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
namespace mlir {
|
|
namespace test {
|
|
|
|
// Forward declarations of individual test pass registration functions
|
|
void registerTestPointerLikeTypeInterfacePass();
|
|
void registerTestRecipePopulatePass();
|
|
|
|
// Unified registration function for all OpenACC tests
|
|
void registerTestOpenACC() {
|
|
registerTestPointerLikeTypeInterfacePass();
|
|
registerTestRecipePopulatePass();
|
|
}
|
|
|
|
} // namespace test
|
|
} // namespace mlir
|