{"push_id":1347411621,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"26cb3d9e116ee377bc6d10254931e5489a95363e","before":"6f0e74d0205f13a426b0e21c21f792f84aae85b3","commits":[{"sha":"26cb3d9e116ee377bc6d10254931e5489a95363e","author":{"name":"Teresa Johnson","email":"86073e34b918e7c41ae3dc36d84d2a9e60368583@google.com"},"message":"Add interface to compute number of physical cores on host system\n\nSummary:\nFor now I have only added support for x86_64 Linux, but other systems\ncan be added incrementally.\n\nThis is to be used for setting the default parallelism for ThinLTO\nbackends (instead of thread::hardware_concurrency which includes\nhyperthreading and is too aggressive). I'll send this as a follow-on\npatch, and it will fall back to hardware_concurrency when the new\ngetHostNumPhysicalCores returns -1 (when not supported for a given\nhost system).\n\nI also added an interface to MemoryBuffer to force reading a file\nas a stream - this is required for /proc/cpuinfo which is a special\nfile that looks like a normal file but appears to have 0 size.\nThe existing readers of this file in Host.cpp are reading the first\n1024 or so bytes from it, because the necessary info is near the top.\nBut for the new functionality we need to be able to read the entire\nfile. I can go back and change the other readers to use the new\ngetFileAsStream as a follow-on patch since it seems much more robust.\n\nAdded a unittest.\n\nReviewers: mehdi_amini\n\nSubscribers: beanz, mgorny, llvm-commits, modocache\n\nDifferential Revision: https://reviews.llvm.org/D25564\n\ngit-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284138 91177308-0d34-0410-b5e6-96231b3b80d8","distinct":true,"url":"https://api.github.com/repos/llvm-project/llvm/commits/26cb3d9e116ee377bc6d10254931e5489a95363e"}]}
{"actor":{"display_login":"chapuni"}}