[all-commits] [llvm/llvm-project] eaadbc: [clang][Interp] Implement __builtin_strcmp

Timm Baeder via All-commits all-commits at lists.llvm.org
Thu Jul 20 06:46:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eaadbcd5e06893f2536e643d5d08b161ecf8c7ec
      https://github.com/llvm/llvm-project/commit/eaadbcd5e06893f2536e643d5d08b161ecf8c7ec
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeEmitter.cpp
    M clang/lib/AST/Interp/Function.cpp
    M clang/lib/AST/Interp/Function.h
    M clang/lib/AST/Interp/Interp.h
    M clang/lib/AST/Interp/InterpBuiltin.cpp
    M clang/lib/AST/Interp/Pointer.h
    A clang/test/AST/Interp/builtin-functions.cpp

  Log Message:
  -----------
  [clang][Interp] Implement __builtin_strcmp

Make our Function class keep a list of parameter offsets so we can
simply get a parameter by index when evaluating builtin functions.

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




More information about the All-commits mailing list