[all-commits] [llvm/llvm-project] 2641d9: Propagate the volatile qualifier of exp to store...

UmeshKalappa via All-commits all-commits at lists.llvm.org
Sat Sep 23 07:10:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2641d9b2807ded4b712f4dca809d63c138c91361
      https://github.com/llvm/llvm-project/commit/2641d9b2807ded4b712f4dca809d63c138c91361
  Author: Umesh Kalappa <umesh.kalappa0 at gmail.com>
  Date:   2023-09-23 (Sat, 23 Sep 2023)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprComplex.cpp
    M clang/lib/CodeGen/CGExprScalar.cpp
    A clang/test/CodeGen/volatile.cpp

  Log Message:
  -----------
  Propagate the volatile qualifier of exp  to  store /load operations .

This changes to address the PR : 55207

We update the volatility  on the LValue by looking at the LHS cast operation qualifier and propagate the RValue volatile-ness   from  the CGF data structure .

Reviewed By: rjmccall

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




More information about the All-commits mailing list