{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1309","repository_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler","labels_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1309/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1309/comments","events_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1309/events","html_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1309","id":326294903,"number":1309,"title":"[linux-port] Use llvm::sys::Atomic*","user":{"login":"pow2clk","id":38554235,"avatar_url":"https://avatars3.githubusercontent.com/u/38554235?v=4","gravatar_id":"","url":"https://api.github.com/users/pow2clk","html_url":"https://github.com/pow2clk","followers_url":"https://api.github.com/users/pow2clk/followers","following_url":"https://api.github.com/users/pow2clk/following{/other_user}","gists_url":"https://api.github.com/users/pow2clk/gists{/gist_id}","starred_url":"https://api.github.com/users/pow2clk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pow2clk/subscriptions","organizations_url":"https://api.github.com/users/pow2clk/orgs","repos_url":"https://api.github.com/users/pow2clk/repos","events_url":"https://api.github.com/users/pow2clk/events{/privacy}","received_events_url":"https://api.github.com/users/pow2clk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-24T21:06:10Z","updated_at":"2018-05-24T21:08:28Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1309","html_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1309","diff_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1309.diff","patch_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1309.patch"},"body":"InterlockedIncrement and InterlockedDecrement are atomic operations to\r\nincrement or decrement the value pointed to by the pointer parameter and\r\nreturn the same.\r\n\r\nThere are already platform abstractions available to LLVM in Atomics.h.\r\nThis change leverages them to implement the same functionality in a\r\nplatform-agnostic way. Mostly it's just a matter of swapping\r\nInterlockedIncrement for AtomicIncrement."},"comment":{"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/comments/391863049","html_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1309#issuecomment-391863049","issue_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1309","id":391863049,"user":{"login":"ehsannas","id":3828215,"avatar_url":"https://avatars1.githubusercontent.com/u/3828215?v=4","gravatar_id":"","url":"https://api.github.com/users/ehsannas","html_url":"https://github.com/ehsannas","followers_url":"https://api.github.com/users/ehsannas/followers","following_url":"https://api.github.com/users/ehsannas/following{/other_user}","gists_url":"https://api.github.com/users/ehsannas/gists{/gist_id}","starred_url":"https://api.github.com/users/ehsannas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehsannas/subscriptions","organizations_url":"https://api.github.com/users/ehsannas/orgs","repos_url":"https://api.github.com/users/ehsannas/repos","events_url":"https://api.github.com/users/ehsannas/events{/privacy}","received_events_url":"https://api.github.com/users/ehsannas/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T21:08:28Z","updated_at":"2018-05-24T21:08:28Z","author_association":"COLLABORATOR","body":"Note that this abstraction is provided by llvm and will help towards cross-platform compilation.\r\n\r\nhttps://github.com/Microsoft/DirectXShaderCompiler/blob/772f1af14df90148c6c7c50a96fb237e82c35c64/lib/Support/Atomic.cpp#L60-L71"}}
{"actor":{"display_login":"ehsannas"}}