[clang] [compiler-rt] [llvm] [PGO][AMDGPU] Add offload profiling with uniformity-aware optimization (PR #177665)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 23 11:51:38 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
The build failed before running any tests. Click on a failure below to see the details.
<details>
<summary>[code=1] lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfCorrelator.cpp.obj</summary>
```
FAILED: [code=1] lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfCorrelator.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\ProfileData -IC:\_work\llvm-project\llvm-project\llvm\lib\ProfileData -Iinclude -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2 -MD -UNDEBUG /EHs-c- /GR- -std:c++17 /showIncludes /Folib\ProfileData\CMakeFiles\LLVMProfileData.dir\InstrProfCorrelator.cpp.obj /Fdlib\ProfileData\CMakeFiles\LLVMProfileData.dir\LLVMProfileData.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(302,26): error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'uint16_t' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
302 | /*NumBitmapBytes=*/maybeSwap<uint32_t>(0),
| ^~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(436,13): note: in instantiation of member function 'llvm::InstrProfCorrelatorImpl<unsigned long long>::addDataProbe' requested here
436 | this->addDataProbe(IndexedInstrProf::ComputeHash(*FunctionName), *CFGHash,
| ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfCorrelator.h(182,3): note: in instantiation of member function 'llvm::DwarfInstrProfCorrelator<unsigned long long>::correlateProfileDataImpl' requested here
182 | DwarfInstrProfCorrelator(std::unique_ptr<DWARFContext> DICtx,
| ^
C:\BuildTools\VC\Tools\MSVC\14.29.30133\include\memory(3382,32): note: in instantiation of member function 'llvm::DwarfInstrProfCorrelator<unsigned long long>::DwarfInstrProfCorrelator' requested here
3382 | return unique_ptr<_Ty>(new _Ty(_STD forward<_Types>(_Args)...));
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(214,19): note: in instantiation of function template specialization 'std::make_unique<llvm::DwarfInstrProfCorrelator<unsigned long long>, std::unique_ptr<llvm::DWARFContext>, std::unique_ptr<llvm::InstrProfCorrelator::Context>, 0>' requested here
214 | return std::make_unique<DwarfInstrProfCorrelator<IntPtrT>>(
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(165,49): note: in instantiation of member function 'llvm::InstrProfCorrelatorImpl<unsigned long long>::get' requested here
165 | return InstrProfCorrelatorImpl<uint64_t>::get(std::move(*CtxOrErr), *Obj,
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(302,26): note: insert an explicit cast to silence this issue
302 | /*NumBitmapBytes=*/maybeSwap<uint32_t>(0),
| ^~~~~~~~~~~~~~~~~~~~~~
| static_cast<uint16_t>()
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(303,3): warning: missing field 'NumBitmapBytes' initializer [-Wmissing-field-initializers]
303 | });
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(302,26): error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'uint16_t' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
302 | /*NumBitmapBytes=*/maybeSwap<uint32_t>(0),
| ^~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(436,13): note: in instantiation of member function 'llvm::InstrProfCorrelatorImpl<unsigned int>::addDataProbe' requested here
436 | this->addDataProbe(IndexedInstrProf::ComputeHash(*FunctionName), *CFGHash,
| ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfCorrelator.h(182,3): note: in instantiation of member function 'llvm::DwarfInstrProfCorrelator<unsigned int>::correlateProfileDataImpl' requested here
182 | DwarfInstrProfCorrelator(std::unique_ptr<DWARFContext> DICtx,
| ^
C:\BuildTools\VC\Tools\MSVC\14.29.30133\include\memory(3382,32): note: in instantiation of member function 'llvm::DwarfInstrProfCorrelator<unsigned int>::DwarfInstrProfCorrelator' requested here
3382 | return unique_ptr<_Ty>(new _Ty(_STD forward<_Types>(_Args)...));
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(214,19): note: in instantiation of function template specialization 'std::make_unique<llvm::DwarfInstrProfCorrelator<unsigned int>, std::unique_ptr<llvm::DWARFContext>, std::unique_ptr<llvm::InstrProfCorrelator::Context>, 0>' requested here
214 | return std::make_unique<DwarfInstrProfCorrelator<IntPtrT>>(
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(168,49): note: in instantiation of member function 'llvm::InstrProfCorrelatorImpl<unsigned int>::get' requested here
168 | return InstrProfCorrelatorImpl<uint32_t>::get(std::move(*CtxOrErr), *Obj,
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(302,26): note: insert an explicit cast to silence this issue
302 | /*NumBitmapBytes=*/maybeSwap<uint32_t>(0),
| ^~~~~~~~~~~~~~~~~~~~~~
| static_cast<uint16_t>()
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProfCorrelator.cpp(303,3): warning: missing field 'NumBitmapBytes' initializer [-Wmissing-field-initializers]
303 | });
| ^
2 warnings and 2 errors generated.
```
</details>
<details>
<summary>[code=1] lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.obj</summary>
```
FAILED: [code=1] lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\ProfileData -IC:\_work\llvm-project\llvm-project\llvm\lib\ProfileData -Iinclude -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2 -MD -UNDEBUG /EHs-c- /GR- -std:c++17 /showIncludes /Folib\ProfileData\CMakeFiles\LLVMProfileData.dir\InstrProf.cpp.obj /Fdlib\ProfileData\CMakeFiles\LLVMProfileData.dir\LLVMProfileData.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProf.cpp
C:\_work\llvm-project\llvm-project\llvm\lib\ProfileData\InstrProf.cpp(1008,13): error: no matching function for call to 'SaturatingMultiplyAdd'
1008 | SaturatingMultiplyAdd(RawCount, Weight, 0UL, &Overflowed);
| ^~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/MathExtras.h(684,1): note: candidate template ignored: deduced conflicting types for parameter 'T' ('uint64_t' (aka 'unsigned long long') vs. 'unsigned long')
684 | SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
| ^
1 error generated.
```
</details>
<details>
<summary>[code=1] unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.obj</summary>
```
FAILED: [code=1] unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iunittests\ProfileData -IC:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData -Iinclude -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override -std:c++17 /showIncludes /Founittests\ProfileData\CMakeFiles\ProfileDataTests.dir\CoverageMappingTest.cpp.obj /Fdunittests\ProfileData\CMakeFiles\ProfileDataTests.dir\ -c -- C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(388,17): error: no matching member function for call to 'addRecord'
388 | ProfileWriter.addRecord({"func", 0x1234, {0}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(409,17): error: no matching member function for call to 'addRecord'
409 | ProfileWriter.addRecord({"", 0x1234, {10}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(417,17): error: no matching member function for call to 'addRecord'
417 | ProfileWriter.addRecord({"func1", 0x1234, {10}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(418,17): error: no matching member function for call to 'addRecord'
418 | ProfileWriter.addRecord({"func2", 0x2345, {20}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(446,17): error: no matching member function for call to 'addRecord'
446 | ProfileWriter.addRecord({"func1", 0x1234, {1, 2, 3}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(467,17): error: no matching member function for call to 'addRecord'
467 | ProfileWriter.addRecord({"func1", 0x1234, {1}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(486,17): error: no matching member function for call to 'addRecord'
486 | ProfileWriter.addRecord({"func1", 0x1234, {1, 0}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(547,17): error: no matching member function for call to 'addRecord'
547 | ProfileWriter.addRecord({"func1", 0x1234, {0, 1, 2}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(575,17): error: no matching member function for call to 'addRecord'
575 | ProfileWriter.addRecord({"func1", 0x1234, {1, 1}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(599,17): error: no matching member function for call to 'addRecord'
599 | ProfileWriter.addRecord({"func1", 0x1234, {1}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(625,17): error: no matching member function for call to 'addRecord'
625 | ProfileWriter.addRecord({"func1", 0x1234, {1, 2}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(647,17): error: no matching member function for call to 'addRecord'
647 | ProfileWriter.addRecord({"func1", 0x1234, {2, 1}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(680,17): error: no matching member function for call to 'addRecord'
680 | ProfileWriter.addRecord({"func1", 0x1234, {1, 2, 3, 4}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(722,17): error: no matching member function for call to 'addRecord'
722 | ProfileWriter.addRecord({"func", 0x1234, {30, 20, 10, 0}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(744,17): error: no matching member function for call to 'addRecord'
744 | ProfileWriter.addRecord({"func", 0x1234, {30, 20, 10, 0}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(807,17): error: no matching member function for call to 'addRecord'
807 | ProfileWriter.addRecord({"func", 0x1234, {10, 20, 30}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(825,17): error: no matching member function for call to 'addRecord'
825 | ProfileWriter.addRecord({"func", 0x1234, {10, 20, 40}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(845,17): error: no matching member function for call to 'addRecord'
845 | ProfileWriter.addRecord({"func", 0x1234, {10, 20}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\CoverageMappingTest.cpp(846,17): error: no matching member function for call to 'addRecord'
846 | ProfileWriter.addRecord({"func", 0x1234, {0, 0}}, Err);
| ~~~~~~~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
<details>
<summary>[code=1] unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.obj</summary>
```
FAILED: [code=1] unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/InstrProfTest.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iunittests\ProfileData -IC:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData -Iinclude -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override -std:c++17 /showIncludes /Founittests\ProfileData\CMakeFiles\ProfileDataTests.dir\InstrProfTest.cpp.obj /Fdunittests\ProfileData\CMakeFiles\ProfileDataTests.dir\ -c -- C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(116,10): error: no matching member function for call to 'addRecord'
116 | Writer.addRecord({"foo", 0x1234, {1, 2, 3, 4}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(133,10): error: no matching member function for call to 'addRecord'
133 | Writer.addRecord({"foo", 0x1234, {1, 2}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(134,10): error: no matching member function for call to 'addRecord'
134 | Writer.addRecord({"foo", 0x1235, {3, 4}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(158,10): error: no matching member function for call to 'addRecord'
158 | Writer.addRecord({"foo", 0x1234, {1, 2}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(159,10): error: no matching member function for call to 'addRecord'
159 | Writer.addRecord({"foo", 0x1235, {3, 4}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(185,10): error: no matching member function for call to 'addRecord'
185 | Writer.addRecord({"func1", 0x1234, {97531}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(186,10): error: no matching member function for call to 'addRecord'
186 | Writer.addRecord({"func2", 0x1234, {0, 0}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(187,10): error: no matching member function for call to 'addRecord'
187 | Writer.addRecord(
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(193,10): error: no matching member function for call to 'addRecord'
193 | Writer.addRecord({"func4", 0x1234, {0}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(244,10): error: no matching member function for call to 'addRecord'
244 | Writer.addRecord({"func1", 0x1234, {42}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(247,11): error: no matching member function for call to 'addRecord'
247 | Writer2.addRecord({"func2", 0x1234, {0, 0}}, Err);
| ~~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(580,10): error: no matching member function for call to 'addRecord'
580 | Writer.addRecord({"func1", 0x1234, {42}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(693,10): error: no matching member function for call to 'addRecord'
693 | Writer.addRecord({getIRPGOFuncName(*InternalFooF), 0x1234, {1}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(694,10): error: no matching member function for call to 'addRecord'
694 | Writer.addRecord({getIRPGOFuncName(*ExternalFooF), 0x5678, {1}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(696,10): error: no matching member function for call to 'addRecord'
696 | Writer.addRecord({getPGOFuncName(*InternalBarF), 0x1111, {2}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(697,10): error: no matching member function for call to 'addRecord'
697 | Writer.addRecord({getPGOFuncName(*ExternalBarF), 0x2222, {2}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(756,24): error: no matching constructor for initialization of 'NamedInstrProfRecord'
756 | NamedInstrProfRecord Record1("caller", 0x1234, {1, 2});
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1095,3): note: candidate constructor not viable: requires 4 arguments, but 3 were provided
1095 | NamedInstrProfRecord(StringRef Name, uint64_t Hash,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1096 | std::vector<uint64_t> Counts,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1097 | uint16_t NumOffloadProfilingThreads)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1100,3): note: candidate constructor not viable: requires 4 arguments, but 3 were provided
1100 | NamedInstrProfRecord(StringRef Name, uint64_t Hash,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1101 | std::vector<uint64_t> Counts,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1102 | std::vector<uint8_t> BitmapBytes)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1084,8): note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
1084 | struct NamedInstrProfRecord : InstrProfRecord {
| ^~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1084,8): note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
1084 | struct NamedInstrProfRecord : InstrProfRecord {
| ^~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1105,3): note: candidate constructor not viable: requires 5 arguments, but 3 were provided
1105 | NamedInstrProfRecord(StringRef Name, uint64_t Hash,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1106 | std::vector<uint64_t> Counts,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1107 | std::vector<uint8_t> BitmapBytes,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1108 | std::vector<uint8_t> UniformityBits)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProf.h(1094,3): note: candidate constructor not viable: requires 0 arguments, but 3 were provided
1094 | NamedInstrProfRecord() = default;
| ^
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(788,10): error: no matching member function for call to 'addRecord'
788 | Writer.addRecord({"callee1", 0x1235, {3, 4}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\unittests\ProfileData\InstrProfTest.cpp(789,10): error: no matching member function for call to 'addRecord'
789 | Writer.addRecord({"callee2", 0x1235, {3, 4}}, Err);
| ~~~~~~~^~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(123,8): note: candidate function not viable: cannot convert initializer list argument to 'NamedInstrProfRecord'
123 | void addRecord(NamedInstrProfRecord &&I, function_ref<void(Error)> Warn) {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(121,17): note: candidate function not viable: requires 3 arguments, but 2 were provided
121 | LLVM_ABI void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 | function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/ProfileData/InstrProfWriter.h(236,8): note: candidate function not viable: requires 5 arguments, but 2 were provided
236 | void addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237 | uint64_t Weight, function_ref<void(Error)> Warn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/177665
More information about the cfe-commits
mailing list