junrushao1994 commented on a change in pull request #8623: URL: https://github.com/apache/tvm/pull/8623#discussion_r685345245
########## File path: src/tir/schedule/traced_schedule.h ########## @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +#ifndef TVM_TIR_SCHEDULE_TRACED_SCHEDULE_H_ +#define TVM_TIR_SCHEDULE_TRACED_SCHEDULE_H_ + +#include "./concrete_schedule.h" + +namespace tvm { +namespace tir { + +class TracedScheduleNode : public ConcreteScheduleNode { + friend class Schedule; + + protected: + Trace trace_; + + public: + void VisitAttrs(tvm::AttrVisitor* v) { + // `state_` is not visited + // `error_render_level_` is not visited + // `symbol_table_` is not visited + // `analyzer_` is not visitied + // `trace_` is not visited + } + + ~TracedScheduleNode() = default; + + public: + Optional<Trace> trace() const final { return trace_; } + Schedule Copy() const final; + + public: + /******** Schedule: Sampling ********/ + + /******** Schedule: Get blocks & loops ********/ + BlockRV GetBlock(const String& name, const String& func_name = "main") final; + Array<LoopRV> GetLoops(const BlockRV& block_rv) final; + /******** Schedule: Transform loops ********/ + LoopRV Fuse(const Array<LoopRV>& loop_rvs) final; + Array<LoopRV> Split(const LoopRV& loop_rv, const Array<Optional<ExprRV>>& factor_rvs) final; + /******** Schedule: Manipulate ForKind ********/ + /******** Schedule: Insert cache stages ********/ Review comment: Yeah and they will be filled up very soon in subsequent PRs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
