@@ -93,9 +93,9 @@ needs to be executed when running under a user-provided optimization level. The
9393.. code :: c++
9494
9595 class PassInfoNode : public Object {
96- String name;
96+ ffi:: String name;
9797 int opt_level;
98- Array<String> required;
98+ ffi:: Array<ffi:: String> required;
9999 };
100100
101101PassContext
@@ -125,11 +125,11 @@ Python APIs to create a compilation pipeline using pass context.
125125 class PassContextNode : public Object {
126126 public:
127127 int opt_level{2};
128- tvm::Array<tvm::Expr> required_pass;
129- tvm::Array<tvm::Expr> disabled_pass;
130- mutable Optional<DiagnosticContext> diag_ctx;
131- Map<String, Any> config;
132- Array<instrument::PassInstrument> instruments;
128+ tvm::ffi: : Array<tvm::Expr> required_pass;
129+ tvm::ffi: : Array<tvm::Expr> disabled_pass;
130+ mutable ffi:: Optional<DiagnosticContext> diag_ctx;
131+ ffi:: Map<ffi:: String, Any> config;
132+ ffi:: Array<instrument::PassInstrument> instruments;
133133 };
134134
135135 class PassContext : public NodeRef {
@@ -262,7 +262,7 @@ of passes for execution.
262262 class SequentialPassNode : PassNode {
263263 PassInfo pass_info;
264264 // Passes need to be executed.
265- Array<Pass> passes;
265+ ffi:: Array<Pass> passes;
266266 bool PassEnabled(const PassInfo& info) const;
267267 Module operator()(const Module& mod, const PassContext& pass_ctx) const final;
268268 };
@@ -321,22 +321,22 @@ favorably use Python APIs to create a specific pass object.
321321 Pass CreateFunctionPass(
322322 std::function<Function(Function, IRModule, PassContext)> pass_func,
323323 int opt_level,
324- String name,
325- Array<String> required);
324+ ffi:: String name,
325+ ffi:: Array<ffi:: String> required);
326326
327327 Pass CreatePrimFuncPass(
328328 std::function<PrimFunc(PrimFunc, IRModule, PassContext)> pass_func,
329329 int opt_level,
330- String name,
331- Array<String> required);
330+ ffi:: String name,
331+ ffi:: Array<ffi:: String> required);
332332
333333 Pass CreateModulePass(
334334 std::function<IRModule(IRModule, PassContext)> pass_func,
335335 int opt_level,
336- String name,
337- Array<String> required);
336+ ffi:: String name,
337+ ffi:: Array<ffi:: String> required);
338338
339- Pass Sequential(tvm::Array<Pass> passes, PassInfo pass_info);
339+ Pass Sequential(tvm::ffi: : Array<Pass> passes, PassInfo pass_info);
340340
341341Pass Registration
342342^^^^^^^^^^^^^^^^^
@@ -440,7 +440,7 @@ Multiple ``PassInstrument`` instances can be registed into a single
440440
441441 class PassInstrumentNode : public Object {
442442 public:
443- String name;
443+ ffi:: String name;
444444 virtual void EnterPassContext() const = 0;
445445 virtual void ExitPassContext() const = 0;
446446 virtual bool ShouldRun(const IRModule& mod, const transform::PassInfo& info) const = 0;
0 commit comments