[all-commits] [llvm/llvm-project] 8a2514: [clang][Interp] Pass CallExpr to builtin functions

Timm Baeder via All-commits all-commits at lists.llvm.org
Thu Aug 17 01:21:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a25145058d29fe0fa06cd3cdb90fea7e21228bb
      https://github.com/llvm/llvm-project/commit/8a25145058d29fe0fa06cd3cdb90fea7e21228bb
  Author: Timm B├Ąder <tbaeder at redhat.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/Interp.h
    M clang/lib/AST/Interp/InterpBuiltin.cpp
    M clang/lib/AST/Interp/Opcodes.td

  Log Message:
  -----------
  [clang][Interp] Pass CallExpr to builtin functions

For some builtins, we need to do quite a bit of type checking ourselves,
so pass the call expression along. This way we can inspect arguments,
expected return value, etc.

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




More information about the All-commits mailing list