Lines Matching defs:Comment
87 StringRef Comment(CommentText);
88 if (Comment.empty())
92 unsigned Position = Comment.find_first_not_of(" \t");
93 if (Position >= Comment.size())
97 Comment = Comment.drop_front(Position);
98 if (Comment.consume_front("LLVM-MCA-END")) {
100 Position = Comment.find_first_not_of(" \t");
101 if (Position < Comment.size())
102 Comment = Comment.drop_front(Position);
103 Regions.endRegion(Comment, Loc);
108 if (!Comment.consume_front("LLVM-MCA-BEGIN"))
112 Position = Comment.find_first_not_of(" \t");
113 if (Position < Comment.size())
114 Comment = Comment.drop_front(Position);
116 Regions.beginRegion(Comment, Loc);
122 StringRef Comment(CommentText);
123 if (Comment.empty())
127 unsigned Position = Comment.find_first_not_of(" \t");
128 if (Position >= Comment.size())
131 Comment = Comment.drop_front(Position);
134 if (!Comment.consume_front("LLVM-MCA-"))
138 if (Comment.consume_front("BEGIN") || Comment.consume_front("END"))
144 auto [InstrumentKind, Data] = Comment.split(" ");