[all-commits] [llvm/llvm-project] 49f953: [clang-repl] Tell the LLJIT the exact target tripl...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Fri May 21 01:17:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49f9532165f0cc0485a7da84662ebf63d155652c
      https://github.com/llvm/llvm-project/commit/49f9532165f0cc0485a7da84662ebf63d155652c
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M clang/lib/Interpreter/IncrementalExecutor.cpp
    M clang/lib/Interpreter/IncrementalExecutor.h
    M clang/lib/Interpreter/Interpreter.cpp

  Log Message:
  -----------
  [clang-repl] Tell the LLJIT the exact target triple we use.

Some systems use a different data layout. For instance, s390x the layout of
machines with vector registers is different from the ones without. In such
cases, the JIT will automatically detect the vector registers and go out of
sync.

This patch tells the JIT what is the target triple of the generated code so that
both ends are in sync.

Discussion available in https://reviews.llvm.org/D96033. Thanks to @uweigand for
helping understand the issue.

Differential revision https://reviews.llvm.org/D102756




More information about the All-commits mailing list