Commit 489eadd
authored
[HLSL] Implementation of the frac intrinsic (#83315)
This change implements the frontend for #70099
Builtins.td - add the frac builtin
CGBuiltin.cpp - add the builtin to DirectX intrinsic mapping
hlsl_intrinsics.h - add the frac api
SemaChecking.cpp - add type checks for builtin
IntrinsicsDirectX.td - add the frac intrinsic
The backend changes for this are going to be very simple:
f309a0e
They were not included because llvm/lib/Target/DirectX/DXIL.td is going
through a major refactor.1 parent 856ce49 commit 489eadd
File tree
13 files changed
+337
-280
lines changed- clang
- include/clang/Basic
- lib
- CodeGen
- Headers/hlsl
- Sema
- test
- CodeGenHLSL/builtins
- SemaHLSL
- BuiltIns
- llvm/include/llvm/IR
13 files changed
+337
-280
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4536 | 4536 | | |
4537 | 4537 | | |
4538 | 4538 | | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
4539 | 4545 | | |
4540 | 4546 | | |
4541 | 4547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10270 | 10270 | | |
10271 | 10271 | | |
10272 | 10272 | | |
10273 | | - | |
| 10273 | + | |
10274 | 10274 | | |
10275 | 10275 | | |
10276 | 10276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18020 | 18020 | | |
18021 | 18021 | | |
18022 | 18022 | | |
18023 | | - | |
18024 | | - | |
18025 | | - | |
18026 | | - | |
18027 | | - | |
18028 | | - | |
18029 | | - | |
18030 | | - | |
| 18023 | + | |
18031 | 18024 | | |
18032 | 18025 | | |
18033 | 18026 | | |
| |||
18041 | 18034 | | |
18042 | 18035 | | |
18043 | 18036 | | |
18044 | | - | |
| 18037 | + | |
18045 | 18038 | | |
| 18039 | + | |
| 18040 | + | |
| 18041 | + | |
| 18042 | + | |
18046 | 18043 | | |
18047 | 18044 | | |
18048 | 18045 | | |
18049 | 18046 | | |
| 18047 | + | |
| 18048 | + | |
| 18049 | + | |
| 18050 | + | |
| 18051 | + | |
| 18052 | + | |
| 18053 | + | |
| 18054 | + | |
18050 | 18055 | | |
18051 | 18056 | | |
18052 | 18057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
320 | 352 | | |
321 | 353 | | |
322 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5246 | 5246 | | |
5247 | 5247 | | |
5248 | 5248 | | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
| 5255 | + | |
| 5256 | + | |
| 5257 | + | |
| 5258 | + | |
| 5259 | + | |
| 5260 | + | |
| 5261 | + | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
5249 | 5266 | | |
5250 | 5267 | | |
5251 | 5268 | | |
| |||
5259 | 5276 | | |
5260 | 5277 | | |
5261 | 5278 | | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
| 5283 | + | |
| 5284 | + | |
| 5285 | + | |
5262 | 5286 | | |
5263 | 5287 | | |
5264 | 5288 | | |
5265 | 5289 | | |
5266 | 5290 | | |
5267 | 5291 | | |
5268 | 5292 | | |
| 5293 | + | |
| 5294 | + | |
5269 | 5295 | | |
5270 | 5296 | | |
5271 | 5297 | | |
| |||
0 commit comments