MLLIF
a MLIR-based Language to Language Interoperability Flyover
Loading...
Searching...
No Matches
annotation.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace clang {
6 class FunctionDecl;
7} // namespace clang
8
9namespace mllif::shared {
10 constexpr std::string Namespace = "$mllif";
11
12 namespace prefix {
13 constexpr std::string Path = "path";
14 constexpr std::string Type = "type";
15 } // namespace prefix
16
17 namespace type {
18 constexpr std::string Function = "function";
19 constexpr std::string Method = "method";
20 }
21
26 void CreateAnnotation(clang::FunctionDecl *decl);
27} // namespace mllif::shared
constexpr std::string Path
Definition annotation.h:13
constexpr std::string Type
Definition annotation.h:14
constexpr std::string Method
Definition annotation.h:19
constexpr std::string Function
Definition annotation.h:18
void CreateAnnotation(clang::FunctionDecl *decl)
Annotate a declaration with its information that may be lost.
constexpr std::string Namespace
Definition annotation.h:10