[all-commits] [llvm/llvm-project] 059a33: Store the calculated constant expression value int...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Feb 11 07:19:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 059a335ee99e9c50442d8caa35c1b31b5cf47e9c
      https://github.com/llvm/llvm-project/commit/059a335ee99e9c50442d8caa35c1b31b5cf47e9c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/AST/ast-dump-c-attr.c
    M clang/test/AST/ast-dump-decl-json.c
    M clang/test/AST/ast-dump-decl.c
    M clang/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c
    M clang/test/AST/ast-dump-openmp-distribute-parallel-for.c
    M clang/test/AST/ast-dump-openmp-distribute-simd.c
    M clang/test/AST/ast-dump-openmp-distribute.c
    M clang/test/AST/ast-dump-openmp-for-simd.c
    M clang/test/AST/ast-dump-openmp-for.c
    M clang/test/AST/ast-dump-openmp-ordered.c
    M clang/test/AST/ast-dump-openmp-parallel-for-simd.c
    M clang/test/AST/ast-dump-openmp-parallel-for.c
    M clang/test/AST/ast-dump-openmp-simd.c
    M clang/test/AST/ast-dump-openmp-target-parallel-for-simd.c
    M clang/test/AST/ast-dump-openmp-target-parallel-for.c
    M clang/test/AST/ast-dump-openmp-target-simd.c
    M clang/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
    M clang/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c
    M clang/test/AST/ast-dump-openmp-target-teams-distribute-simd.c
    M clang/test/AST/ast-dump-openmp-target-teams-distribute.c
    M clang/test/AST/ast-dump-openmp-taskloop-simd.c
    M clang/test/AST/ast-dump-openmp-taskloop.c
    M clang/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c
    M clang/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c
    M clang/test/AST/ast-dump-openmp-teams-distribute-simd.c
    M clang/test/AST/ast-dump-openmp-teams-distribute.c
    M clang/test/AST/ast-dump-records.c

  Log Message:
  -----------
  Store the calculated constant expression value into the ConstantExpr object

With https://reviews.llvm.org/D63376, we began storing the APValue
directly into the ConstantExpr object so that we could reuse the
calculated value later. However, it missed a case when not in C++11
mode but the expression is known to be constant.




More information about the All-commits mailing list