[all-commits] [llvm/llvm-project] eee8dd: [CodeExtractor] Allow to use 0 addr space for aggr...

Dominik Adamski via All-commits all-commits at lists.llvm.org
Wed Oct 18 11:12:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eee8dd90887cbf86fa0fea1ff770377a87af0257
      https://github.com/llvm/llvm-project/commit/eee8dd90887cbf86fa0fea1ff770377a87af0257
  Author: Dominik Adamski <dominik.adamski at amd.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/CodeExtractor.h
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/unittests/Transforms/Utils/CodeExtractorTest.cpp

  Log Message:
  -----------
  [CodeExtractor] Allow to use 0 addr space for aggregate arg (#66998)

The user of CodeExtractor should be able to specify that
the aggregate argument should be passed as a pointer in zero address
space.

CodeExtractor is used to generate outlined functions required by OpenMP
runtime. The arguments of the outlined functions for OpenMP GPU code
are in 0 address space. 0 address space does not need to be the default
address space for GPU device. That's why there is a need to allow
the user of CodeExtractor to specify, that the allocated aggregate parameter
is passed as pointer in zero address space.




More information about the All-commits mailing list