[llvm] [OpenMP][OMPIRBuilder] Add support to omp target parallel (PR #67000)
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 03:57:27 PDT 2023
================
@@ -602,6 +602,8 @@ void OpenMPIRBuilder::finalize(Function *Fn) {
Function *OuterFn = OI.getFunction();
CodeExtractorAnalysisCache CEAC(*OuterFn);
+ unsigned AllocaAddressSpace =
+ Config.isTargetDevice() ? 0 : M.getDataLayout().getAllocaAddrSpace();
----------------
jdoerfert wrote:
Always use the DL?
https://github.com/llvm/llvm-project/pull/67000
More information about the llvm-commits
mailing list