[all-commits] [llvm/llvm-project] 3ee6f1: [LLParser] Remove special handling for call addres...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 23 03:08:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ee6f1a4fa83fa1e737324e77c27d3cc967d36bc
      https://github.com/llvm/llvm-project/commit/3ee6f1a4fa83fa1e737324e77c27d3cc967d36bc
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp

  Log Message:
  -----------
  [LLParser] Remove special handling for call address space

Spin-off from D104740: I don't think this special handling is needed
anymore. Calls in textual IR are annotated with addrspace(N) (which
defaults to the program address space from data layout) and specifies
the expected pointer address space of the callee. There is no need
to special-case the program address space on top of that, as it
already is the default expected address space, and we shouldn't
allow use of the program address space if the call was explicitly
annotated with some other address space.

The IsCall parameter is retained because it will be used again soon.

Differential Revision: https://reviews.llvm.org/D104752




More information about the All-commits mailing list