<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/lib/Driver/Types.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[Clang][OpenCL] Fix Missing `-fdeclare-opencl-builtins` When Using `--save-temps` (#131017)</title>
<updated>2025-03-12T21:00:19+00:00</updated>
<author>
<name>Shilei Tian</name>
<email>i@tianshilei.me</email>
</author>
<published>2025-03-12T21:00:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c476a4a907a51371f051fd83987aaeb2c4a011af'/>
<id>c476a4a907a51371f051fd83987aaeb2c4a011af</id>
<content type='text'>
When compiling an OpenCL program directly with `clang` using
`--save-temps`, an
error may occur if the program contains OpenCL builtins:

```
test.cl:3:21: error: use of undeclared identifier 'get_global_id'
    3 |   unsigned int id = get_global_id(0);
      |                     ^
```

This happens because the driver does not add `-fdeclare-opencl-builtins`
when
the input type is `TY_PP_CL`. This PR fixes the issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When compiling an OpenCL program directly with `clang` using
`--save-temps`, an
error may occur if the program contains OpenCL builtins:

```
test.cl:3:21: error: use of undeclared identifier 'get_global_id'
    3 |   unsigned int id = get_global_id(0);
      |                     ^
```

This happens because the driver does not add `-fdeclare-opencl-builtins`
when
the input type is `TY_PP_CL`. This PR fixes the issue.</pre>
</div>
</content>
</entry>
<entry>
<title>[Driver] Remove unused includes (NFC) (#116316)</title>
<updated>2024-11-15T15:26:05+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-11-15T15:26:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4d6a5fc702e568b0456c4d8f9e2307eb6d81e955'/>
<id>4d6a5fc702e568b0456c4d8f9e2307eb6d81e955</id>
<content type='text'>
Identified with misc-include-cleaner.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Identified with misc-include-cleaner.</pre>
</div>
</content>
</entry>
<entry>
<title>Remove support for RenderScript (#112916)</title>
<updated>2024-10-28T16:48:42+00:00</updated>
<author>
<name>Aaron Ballman</name>
<email>aaron@aaronballman.com</email>
</author>
<published>2024-10-28T16:48:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=af7c58b7ea853ef34462ce97739203e2da3c5894'/>
<id>af7c58b7ea853ef34462ce97739203e2da3c5894</id>
<content type='text'>
See
https://discourse.llvm.org/t/rfc-deprecate-and-eventually-remove-renderscript-support/81284
for the RFC</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See
https://discourse.llvm.org/t/rfc-deprecate-and-eventually-remove-renderscript-support/81284
for the RFC</pre>
</div>
</content>
</entry>
<entry>
<title>Reland "[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)"</title>
<updated>2024-08-16T20:41:24+00:00</updated>
<author>
<name>Valentin Clement (バレンタイン クレメン)</name>
<email>clementval@gmail.com</email>
</author>
<published>2024-08-16T18:56:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1a8817aebe12b8d4708ee849fb8f792cffb7ae85'/>
<id>1a8817aebe12b8d4708ee849fb8f792cffb7ae85</id>
<content type='text'>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Reland "[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)""</title>
<updated>2024-08-16T20:19:26+00:00</updated>
<author>
<name>Valentin Clement</name>
<email>clementval@gmail.com</email>
</author>
<published>2024-08-16T20:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=de9338fc625d8d67c18032492b2e743cd53f4b37'/>
<id>de9338fc625d8d67c18032492b2e743cd53f4b37</id>
<content type='text'>
This reverts commit af81b4f9f98f6ac89f876637f065d6525e374468.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit af81b4f9f98f6ac89f876637f065d6525e374468.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reland "[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)"</title>
<updated>2024-08-16T20:10:36+00:00</updated>
<author>
<name>Valentin Clement (バレンタイン クレメン)</name>
<email>clementval@gmail.com</email>
</author>
<published>2024-08-16T18:56:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=af81b4f9f98f6ac89f876637f065d6525e374468'/>
<id>af81b4f9f98f6ac89f876637f065d6525e374468</id>
<content type='text'>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[flang][cuda][driver] Make sure flang does not switch to cc1" (#104632)</title>
<updated>2024-08-16T19:02:37+00:00</updated>
<author>
<name>Valentin Clement (バレンタイン クレメン)</name>
<email>clementval@gmail.com</email>
</author>
<published>2024-08-16T19:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e315ba185b835c8ee520076b434377cfb7350067'/>
<id>e315ba185b835c8ee520076b434377cfb7350067</id>
<content type='text'>
Reverts llvm/llvm-project#104613</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#104613</pre>
</div>
</content>
</entry>
<entry>
<title>[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)</title>
<updated>2024-08-16T18:56:22+00:00</updated>
<author>
<name>Valentin Clement (バレンタイン クレメン)</name>
<email>clementval@gmail.com</email>
</author>
<published>2024-08-16T18:56:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e6b9f12b0ac0f1e6f7f7145719092c10731e4fe4'/>
<id>e6b9f12b0ac0f1e6f7f7145719092c10731e4fe4</id>
<content type='text'>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment. 

#104483</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1
with cuda fortran input.

The current pipeline will fail at MLIR level for the moment. 

#104483</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][driver][clang-cl] Fix unused argument warning for `/std:c++20` for precompiled module inputs to `clang-cl` (#99300)</title>
<updated>2024-08-08T02:00:31+00:00</updated>
<author>
<name>Sharadh Rajaraman</name>
<email>r.sharadh@outlook.sg</email>
</author>
<published>2024-08-08T02:00:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9d315bc45f2bb04333b1dd9d06d1f49d981b8283'/>
<id>9d315bc45f2bb04333b1dd9d06d1f49d981b8283</id>
<content type='text'>
Relates to #98761: `-fmodule-file` requires `/std:c++20` or greater, but
passing that option results in an unused argument warning. This resolves
that.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Relates to #98761: `-fmodule-file` requires `/std:c++20` or greater, but
passing that option results in an unused argument warning. This resolves
that.</pre>
</div>
</content>
</entry>
<entry>
<title>[Clang][Driver] Fix `--save-temps` for OpenCL AoT compilation (#78333)</title>
<updated>2024-01-23T22:08:04+00:00</updated>
<author>
<name>Shilei Tian</name>
<email>i@tianshilei.me</email>
</author>
<published>2024-01-23T22:08:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dc410f94f602390a65c832cf348b9ee6556b1809'/>
<id>dc410f94f602390a65c832cf348b9ee6556b1809</id>
<content type='text'>
We can directly call `clang -c -x cl -target amdgcn -mcpu=gfx90a test.cl
-o test.o`
to compile an OpenCL kernel file. However, when `--save-temps` is
enabled, it doesn't
work because the preprocessed file (`.i` file) is taken as C source file
when it
is fed to the front end, thus causing compilation error because those
OpenCL keywords
can't be recognized. This patch fixes the issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We can directly call `clang -c -x cl -target amdgcn -mcpu=gfx90a test.cl
-o test.o`
to compile an OpenCL kernel file. However, when `--save-temps` is
enabled, it doesn't
work because the preprocessed file (`.i` file) is taken as C source file
when it
is fed to the front end, thus causing compilation error because those
OpenCL keywords
can't be recognized. This patch fixes the issue.</pre>
</div>
</content>
</entry>
</feed>
