Skip to content

Mechanically port bulk of x86 builtins to TableGen #120831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions clang/include/clang/Basic/BuiltinsBase.td
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,15 @@ class Builtin {
// On some platforms, some functions are actually macros. In that case we need
// to #undef them.
bit RequiresUndef = 0;
// Enables builtins to generate `long long` outside of OpenCL and `long` inside.
bit EnableOpenCLLong = 0;
}

class CustomEntry {
string Entry;
}

class AtomicBuiltin : Builtin;
class TargetBuiltin : Builtin {
string Features = "";
}

class LibBuiltin<string header, string languages = "ALL_LANGUAGES"> : Builtin {
string Header = header;
Expand All @@ -122,6 +121,14 @@ class OCL_DSELangBuiltin : LangBuiltin<"OCL_DSE">;
class OCL_GASLangBuiltin : LangBuiltin<"OCL_GAS">;
class OCLLangBuiltin : LangBuiltin<"ALL_OCL_LANGUAGES">;

class TargetBuiltin : Builtin {
string Features = "";
}
class TargetLibBuiltin : TargetBuiltin {
string Header;
string Languages = "ALL_LANGUAGES";
}

class Template<list<string> substitutions,
list<string> affixes,
bit as_prefix = 0> {
Expand Down
Loading
Loading