__atomic_* "intrinsics" using LLVM instructions

This commit is contained in:
gingerBill
2018-10-17 21:16:01 +01:00
parent efc3a9e69d
commit b171cc41e6
7 changed files with 765 additions and 20 deletions
+3 -2
View File
@@ -494,13 +494,14 @@ void add_declaration_dependency(CheckerContext *c, Entity *e) {
Entity *add_global_entity(Entity *entity) {
String name = entity->token.string;
defer (entity->state = EntityState_Resolved);
if (gb_memchr(name.text, ' ', name.len)) {
return entity; // NOTE(bill): 'untyped thing'
return entity; // NOTE(bill): Usually an 'untyped thing'
}
if (scope_insert(builtin_scope, entity)) {
compiler_error("double declaration");
}
entity->state = EntityState_Resolved;
return entity;
}