Skip to content

Commit

Permalink
[Continuations] Specify namespace for llvm_dialects (GPUOpen-Drivers#…
Browse files Browse the repository at this point in the history
…2879)

llvm_dialects current has `using namespace` in a header which leads to
conflicts. Specify the namespace here explicitly, so that we can remove
the using.
  • Loading branch information
Flakebi authored Dec 13, 2023
1 parent 0dac4f3 commit c552fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct GpuRtIntrinsicEntry {
bool AccessesHitData = false;
};

extern const OpMap<GpuRtIntrinsicEntry> LgcRtGpuRtMap;
extern const llvm_dialects::OpMap<GpuRtIntrinsicEntry> LgcRtGpuRtMap;

// This must match DXIL::ShaderKind from DxilConstants.h, and also
// DXILShaderKind in a matching definition in GPURT, because it is used
Expand Down
6 changes: 3 additions & 3 deletions shared/continuations/lib/LowerRaytracingPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1868,9 +1868,9 @@ void LowerRaytracingPipelinePassImpl::handleUnrematerializableCandidates() {
if (!DialectUtils::isLgcRtOp(&Func))
continue;

static const OpSet NonRematerializableDialectOps =
OpSet::get<TraceRayOp, ReportHitOp, CallCallableShaderOp,
ShaderIndexOp>();
static const llvm_dialects::OpSet NonRematerializableDialectOps =
llvm_dialects::OpSet::get<TraceRayOp, ReportHitOp, CallCallableShaderOp,
ShaderIndexOp>();
if (!NonRematerializableDialectOps.contains(Func)) {
llvm::forEachCall(Func, [&](llvm::CallInst &CInst) {
auto Data = ToProcess.find(CInst.getFunction());
Expand Down

0 comments on commit c552fb3

Please sign in to comment.