[all-commits] [llvm/llvm-project] c0f874: [HIP][Clang][Preprocessor] Add Preprocessor suppor...
Alex Voicu via All-commits
all-commits at lists.llvm.org
Tue Oct 3 05:18:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c0f8748d448be69748fee73014a60ada22b41b0d
https://github.com/llvm/llvm-project/commit/c0f8748d448be69748fee73014a60ada22b41b0d
Author: Alex Voicu <alexandru.voicu at amd.com>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M clang/lib/Frontend/InitPreprocessor.cpp
M clang/test/Preprocessor/predefined-macros.c
Log Message:
-----------
[HIP][Clang][Preprocessor] Add Preprocessor support for `hipstdpar`
This patch adds the Driver changes needed for enabling HIP parallel algorithm offload on AMDGPU targets. This change merely adds two macros to inform user space if we are compiling in `hipstdpar` mode and, respectively, if the optional allocation interposition mode has been requested, as well as associated minimal tests. The macros can be used by the runtime implementation of offload to drive conditional compilation, and are only defined if the HIP language has been enabled.
Reviewed by: yaxunl
Differential Revision: https://reviews.llvm.org/D155826
More information about the All-commits
mailing list