[all-commits] [llvm/llvm-project] f6f02e: [clang][Interp] Implement for loops

Timm Bäder via All-commits all-commits at lists.llvm.org
Tue Oct 25 23:55:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6f02e090072002674c85c9d015b42f61c41656e
      https://github.com/llvm/llvm-project/commit/f6f02e090072002674c85c9d015b42f61c41656e
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeStmtGen.cpp
    M clang/lib/AST/Interp/ByteCodeStmtGen.h
    M clang/test/AST/Interp/loops.cpp

  Log Message:
  -----------
  [clang][Interp] Implement for loops

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


  Commit: f007c99ed12f15f23e39f02d0fcb71eecead9b97
      https://github.com/llvm/llvm-project/commit/f007c99ed12f15f23e39f02d0fcb71eecead9b97
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/InterpFrame.cpp
    M clang/test/AST/Interp/records.cpp

  Log Message:
  -----------
  [clang][Interp] Fix InterpFrame::describe() for This pointers

Since we pass this via the stack, we need to account for it when
desribing the stack frame (parameters). This fixes a previously
commented-out test case.

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


  Commit: ea2596692f5f15e911020c0779c7ee0df51382a9
      https://github.com/llvm/llvm-project/commit/ea2596692f5f15e911020c0779c7ee0df51382a9
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Simplify generated code for references

Instead of getting a pointer to a pointer to a value, followed by
dereferencing once, leaving us with a pointer to a value, we can instead
just get the pointer to the value (the reference in question) directly.
This simplifies (and shrinks) the generated bytecode somewhat.


  Commit: 4a9b7273260d2ed071737e48210159bc47347fed
      https://github.com/llvm/llvm-project/commit/4a9b7273260d2ed071737e48210159bc47347fed
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/Descriptor.h

  Log Message:
  -----------
  [clang][Interp][NFC] Make InitMap final


  Commit: 751f1bfb5f77dfab27456c6964721ed3a4f9f896
      https://github.com/llvm/llvm-project/commit/751f1bfb5f77dfab27456c6964721ed3a4f9f896
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeStmtGen.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Assert we have a valid Record instance


  Commit: caa83d23295ae42334ea692a300e9acc77a30449
      https://github.com/llvm/llvm-project/commit/caa83d23295ae42334ea692a300e9acc77a30449
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M clang/lib/AST/Interp/InterpFrame.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Simplify InterpFrame::describe


Compare: https://github.com/llvm/llvm-project/compare/4a5184f4c357...caa83d23295a


More information about the All-commits mailing list