Skip to content

[HLSL] Improve logic for choosing spv/dx intrinsic at CG #83882

Closed
@sudonatalie

Description

@sudonatalie

Follow-up from: #82536

More target-specific intrinsics are going to be added that are effectively shared between SPIR-V and DirectX backends, so we need a better design for HLSL CodeGen than repetitive switch/if statements on the target. There are a few possible patterns discussed here: #82536 (comment).

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.enhancementImproving things as opposed to bug fixing, e.g. new or missing feature

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions