[all-commits] [llvm/llvm-project] b19010: [Bitcode] Encode alloca address space

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 11 07:08:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b190108693066d94181014018fbc96624453dbe2
      https://github.com/llvm/llvm-project/commit/b190108693066d94181014018fbc96624453dbe2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    A llvm/test/Bitcode/alloca-addrspace.ll

  Log Message:
  -----------
  [Bitcode] Encode alloca address space

Since D101045, allocas are no longer required to be part of the
default alloca address space. There may be allocas in multiple
different address spaces. However, the bitcode reader would
simply assume the default alloca address space, resulting in
either an error or incorrect IR.

Add an optional record for allocas which encodes the address
space.




More information about the All-commits mailing list