Commit dc0ffd7
Mahmood Yassin
[CIR][OpenCL] Support lowering of OCL opaque types
Implement handling for zero-initialization casts to OpenCL opaque types
in CIR. This covers cases like `event_t e = async_work_group_copy(..., 0)`.
- `VisitCastExpr`: CK_ZeroToOCLOpaqueType now returns a null pointer of the
appropriate opaque type instead of `llvm_unreachable`.
- `CIRGenTypes::convertType`: Added proper CIR type conversions for OpenCL
opaque types including event, queue, and reserve_id types.
- Provides consistent CIR representation for OpenCL opaque objects.1 parent e392b11 commit dc0ffd7
2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1945 | 1945 | | |
1946 | 1946 | | |
1947 | 1947 | | |
1948 | | - | |
1949 | | - | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
1950 | 1960 | | |
1951 | 1961 | | |
1952 | 1962 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
519 | 521 | | |
520 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
521 | 526 | | |
522 | 527 | | |
523 | 528 | | |
| |||
0 commit comments