Skip to content
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