[all-commits] [llvm/llvm-project] c2dc46: [TableGen] Pass ValueTypeByHwMode by const referen...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jul 31 14:52:49 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c2dc46cd1532c57e3d16c69f54edeed67e2d46c7
https://github.com/llvm/llvm-project/commit/c2dc46cd1532c57e3d16c69f54edeed67e2d46c7
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-07-31 (Wed, 31 Jul 2024)
Changed paths:
M llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
Log Message:
-----------
[TableGen] Pass ValueTypeByHwMode by const reference in a couple places. NFC
ValueTypeByHwMode contains a std::map. We shouldn't copy it if
we don't need to .
Fixes #101406.
Commit: 24f8d1009e5359590a619cbbf596229ae5bfbbca
https://github.com/llvm/llvm-project/commit/24f8d1009e5359590a619cbbf596229ae5bfbbca
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-07-31 (Wed, 31 Jul 2024)
Changed paths:
M llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
M llvm/utils/TableGen/GlobalISelEmitter.cpp
Log Message:
-----------
[TableGen] Add an explicit cast to allow one TypeSetByHwMode constructor to be removed. NFC
This constructor was taking a ValueTypeByMode by value to create
an ArrayRef. By adding an explicit cast from ValueTypeByHwMode
to TypeSetByHwMode we allow the ArrayRef to be implicitly converted
from a single element.
Compare: https://github.com/llvm/llvm-project/compare/951a36309787...24f8d1009e53
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list