1
0
Fork 0
forked from suyu/suyu
suyu/src
Lioncash b6dcb1ae4d shader/shader_ir: Make Comment() take a std::string by value
This allows for forming comment nodes without making unnecessary copies
of the std::string instance.

e.g. previously:

Comment(fmt::format("Base address is c[0x{:x}][0x{:x}]",
        cbuf->GetIndex(), cbuf_offset));

Would result in a copy of the string being created, as CommentNode()
takes a std::string by value (a const ref passed to a value parameter
results in a copy).

Now, only one instance of the string is ever moved around. (fmt::format
returns a std::string, and since it's returned from a function by value,
this is a prvalue (which can be treated like an rvalue), so it's moved
into Comment's string parameter), we then move it into the CommentNode
constructor, which then moves the string into its member variable).
2019-05-23 03:01:55 -03:00
..
audio_core core/core_timing: Make callback parameters consistent 2019-03-24 18:12:17 -04:00
common common/zstd_compression: Remove #pragma once directive from source file 2019-05-04 01:54:29 -04:00
core Merge pull request #2410 from lioncash/affinity 2019-05-19 13:59:52 -04:00
input_common general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
tests kernel: Handle page table switching within MakeCurrentProcess() 2019-04-07 01:12:54 -04:00
video_core shader/shader_ir: Make Comment() take a std::string by value 2019-05-23 03:01:55 -03:00
web_service general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
yuzu Merge pull request #2455 from lioncash/config 2019-05-20 20:46:05 -04:00
yuzu_cmd Merge pull request #2477 from ReinUsesLisp/fix-sdl2 2019-05-17 13:04:33 -04:00
.clang-format
CMakeLists.txt Merge pull request #2460 from lioncash/volatile 2019-05-14 06:34:53 -04:00