glasm: Implement barriers

This commit is contained in:
ReinUsesLisp 2021-05-19 16:51:52 -03:00 committed by ameerj
parent b60b3fa113
commit d957b3a8fe

View File

@ -53,15 +53,15 @@ void EmitDemoteToHelperInvocation(EmitContext& ctx) {
}
void EmitBarrier(EmitContext& ctx) {
NotImplemented();
ctx.Add("BAR;");
}
void EmitWorkgroupMemoryBarrier(EmitContext& ctx) {
NotImplemented();
ctx.Add("MEMBAR.CTA;");
}
void EmitDeviceMemoryBarrier(EmitContext& ctx) {
NotImplemented();
ctx.Add("MEMBAR;");
}
void EmitPrologue(EmitContext& ctx) {