10std::unique_ptr<sandboxir::RegionPass>
12#define REGION_PASS(NAME, CLASS_NAME) \
14 assert(Args.empty() && "Unexpected arguments for pass '" NAME "'."); \
15 return std::make_unique<CLASS_NAME>(); \
18#include "Passes/PassRegistry.def"
22std::unique_ptr<sandboxir::FunctionPass>
25#define FUNCTION_PASS_WITH_PARAMS(NAME, CLASS_NAME) \
27 return std::make_unique<CLASS_NAME>(Args);
28#include "Passes/PassRegistry.def"
StringRef - Represent a constant reference to a string, i.e.
static std::unique_ptr< RegionPass > createRegionPass(StringRef Name, StringRef Args)
static std::unique_ptr< FunctionPass > createFunctionPass(StringRef Name, StringRef Args)