[all-commits] [llvm/llvm-project] ce1b24: [IRBuilder] Handle constexpr-bitcast for IRBuilder...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Aug 2 20:14:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce1b24cca886eb9f05e252f399059167473d0ba3
      https://github.com/llvm/llvm-project/commit/ce1b24cca886eb9f05e252f399059167473d0ba3
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-08-03 (Wed, 03 Aug 2022)

  Changed paths:
    M llvm/lib/IR/IRBuilder.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  [IRBuilder] Handle constexpr-bitcast for IRBuilder::CreateThreadLocalAddress

In case that opaque pointers not enabled, there may be some constexpr
bitcast uses for thread local variables and the design of llvm allow
people to sink constant arbitrarily. This breaks the assumption of
IRBuilder::CreateThreadLocalAddress. This patch tries to handle the
case.




More information about the All-commits mailing list