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

Format code for PR #6093 #38

Merged
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
3 changes: 2 additions & 1 deletion source/slang/slang-diagnostic-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,8 @@ DIAGNOSTIC(
41403,
Error,
invalidAtomicDestinationPointer,
"cannot perform atomic operation because destination is neither groupshared nor from a device buffer.")
"cannot perform atomic operation because destination is neither groupshared nor from a device "
"buffer.")

//
// 5xxxx - Target code generation.
Expand Down
3 changes: 2 additions & 1 deletion source/slang/slang-emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,8 @@ Result linkAndOptimizeIR(
byteAddressBufferOptions);
}

// For SPIR-V, this function is called elsewhere, so that it can happen after address space specialization
// For SPIR-V, this function is called elsewhere, so that it can happen after address space
// specialization
if (target != CodeGenTarget::SPIRV && target != CodeGenTarget::SPIRVAssembly)
validateAtomicOperations(sink, irModule->getModuleInst());

Expand Down
2 changes: 1 addition & 1 deletion source/slang/slang-ir-validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ void validateAtomicOperations(DiagnosticSink* sink, IRInst* inst)
{
// There may be unused functions containing violations after address space specialization.
if (auto func = as<IRFunc>(inst))
if(!(func->hasUses() || func->findDecoration<IREntryPointDecoration>()))
if (!(func->hasUses() || func->findDecoration<IREntryPointDecoration>()))
return;

switch (inst->getOp())
Expand Down
Loading