Skip to content

[HLSL] Enable parsing half suffix for floating point literals #85712

Closed
@llvm-beanz

Description

@llvm-beanz

HLSL supports the h suffix for floating point literals to denote half types. Clang currently blocks that suffix unless the OpenCL 16-bit type extension is enabled: https://godbolt.org/z/f55547a3z

Acceptance Criteria

Test cases demonstrating parsing of floating point values with the h suffix generating correct half AST types.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions