[all-commits] [llvm/llvm-project] 3fe89b: [clang][RISCV][NFC] Prevent data race in RVVType::...
Kito Cheng via All-commits
all-commits at lists.llvm.org
Wed Nov 23 00:59:34 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3fe89be8015955f2e8403f8b7d7580db13cedb2c
https://github.com/llvm/llvm-project/commit/3fe89be8015955f2e8403f8b7d7580db13cedb2c
Author: Kito Cheng <kito.cheng at sifive.com>
Date: 2022-11-23 (Wed, 23 Nov 2022)
Changed paths:
M clang/include/clang/Support/RISCVVIntrinsicUtils.h
M clang/lib/Sema/SemaRISCVVectorLookup.cpp
M clang/lib/Support/RISCVVIntrinsicUtils.cpp
M clang/utils/TableGen/RISCVVEmitter.cpp
Log Message:
-----------
[clang][RISCV][NFC] Prevent data race in RVVType::computeType
Introduce a RVVTypeCache to hold the cache instead of using a local
static variable to maintain a cache.
Also made construct of RVVType to private, make sure that could be only
created by a cache manager.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D138429
More information about the All-commits
mailing list