{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/comments/205798547","pull_request_review_id":141142743,"id":205798547,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTc5ODU0Nw==","diff_hunk":"@@ -0,0 +1,33 @@\n+// Run: %dxc -T ps_6_0 -E main -Zi\n+\n+// CHECK:      [[file:%\\d+]] = OpString\n+// CHECK-SAME: spirv.debug.opline.hlsl\n+\n+Texture2D    MyTexture;\n+SamplerState MySampler;\n+\n+uint foo(uint val) {\n+  return val;\n+}\n+\n+// Note that we do two passes for debuging info: first preprocessing and then\n+// compiling the preprocessed source code.\n+// Because the preprocessor prepends a \"#line 1 ...\" line to the whole file,\n+// the compliation sees line numbers incremented by 1.\n+\n+float4 main(uint val : A) : SV_Target {\n+  // CHECK:      OpLine [[file]] 23 12\n+  // CHECK-NEXT: OpLoad %uint %val\n+  // CHECK-NEXT: OpBitReverse\n+  uint a = reversebits(val);\n+\n+  // CHECK:      OpLine [[file]] 27 12","path":"tools/clang/test/CodeGenSPIRV/spirv.debug.opline.hlsl","position":24,"original_position":24,"commit_id":"fc6ca1c4efef54526dcc0a5ed33ab3eb3b17712e","original_commit_id":"fc6ca1c4efef54526dcc0a5ed33ab3eb3b17712e","user":{"login":"ehsannas","id":3828215,"node_id":"MDQ6VXNlcjM4MjgyMTU=","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},"body":"Shouldn't this be line 26?","created_at":"2018-07-27T14:44:45Z","updated_at":"2018-07-27T14:45:38Z","html_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459#discussion_r205798547","pull_request_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/comments/205798547"},"html":{"href":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459#discussion_r205798547"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459","id":204445247,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDQ1MjQ3","html_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459","diff_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459.diff","patch_url":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459.patch","issue_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1459","number":1459,"state":"open","locked":false,"title":"[spirv] Add OpLine for function calls","user":{"login":"antiagainst","id":487928,"node_id":"MDQ6VXNlcjQ4NzkyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/487928?v=4","gravatar_id":"","url":"https://api.github.com/users/antiagainst","html_url":"https://github.com/antiagainst","followers_url":"https://api.github.com/users/antiagainst/followers","following_url":"https://api.github.com/users/antiagainst/following{/other_user}","gists_url":"https://api.github.com/users/antiagainst/gists{/gist_id}","starred_url":"https://api.github.com/users/antiagainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiagainst/subscriptions","organizations_url":"https://api.github.com/users/antiagainst/orgs","repos_url":"https://api.github.com/users/antiagainst/repos","events_url":"https://api.github.com/users/antiagainst/events{/privacy}","received_events_url":"https://api.github.com/users/antiagainst/received_events","type":"User","site_admin":false},"body":"This covers intrinsic functions, intrinsic methods, and user-\r\ndefined functions.","created_at":"2018-07-27T14:17:15Z","updated_at":"2018-07-27T14:45:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7f3d2c4a1726c29086a9e0c038ff7d351d0be07","assignee":{"login":"antiagainst","id":487928,"node_id":"MDQ6VXNlcjQ4NzkyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/487928?v=4","gravatar_id":"","url":"https://api.github.com/users/antiagainst","html_url":"https://github.com/antiagainst","followers_url":"https://api.github.com/users/antiagainst/followers","following_url":"https://api.github.com/users/antiagainst/following{/other_user}","gists_url":"https://api.github.com/users/antiagainst/gists{/gist_id}","starred_url":"https://api.github.com/users/antiagainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiagainst/subscriptions","organizations_url":"https://api.github.com/users/antiagainst/orgs","repos_url":"https://api.github.com/users/antiagainst/repos","events_url":"https://api.github.com/users/antiagainst/events{/privacy}","received_events_url":"https://api.github.com/users/antiagainst/received_events","type":"User","site_admin":false},"assignees":[{"login":"antiagainst","id":487928,"node_id":"MDQ6VXNlcjQ4NzkyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/487928?v=4","gravatar_id":"","url":"https://api.github.com/users/antiagainst","html_url":"https://github.com/antiagainst","followers_url":"https://api.github.com/users/antiagainst/followers","following_url":"https://api.github.com/users/antiagainst/following{/other_user}","gists_url":"https://api.github.com/users/antiagainst/gists{/gist_id}","starred_url":"https://api.github.com/users/antiagainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiagainst/subscriptions","organizations_url":"https://api.github.com/users/antiagainst/orgs","repos_url":"https://api.github.com/users/antiagainst/repos","events_url":"https://api.github.com/users/antiagainst/events{/privacy}","received_events_url":"https://api.github.com/users/antiagainst/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459/commits","review_comments_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459/comments","review_comment_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1459/comments","statuses_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/statuses/fc6ca1c4efef54526dcc0a5ed33ab3eb3b17712e","head":{"label":"antiagainst:debug-line","ref":"debug-line","sha":"fc6ca1c4efef54526dcc0a5ed33ab3eb3b17712e","user":{"login":"antiagainst","id":487928,"node_id":"MDQ6VXNlcjQ4NzkyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/487928?v=4","gravatar_id":"","url":"https://api.github.com/users/antiagainst","html_url":"https://github.com/antiagainst","followers_url":"https://api.github.com/users/antiagainst/followers","following_url":"https://api.github.com/users/antiagainst/following{/other_user}","gists_url":"https://api.github.com/users/antiagainst/gists{/gist_id}","starred_url":"https://api.github.com/users/antiagainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiagainst/subscriptions","organizations_url":"https://api.github.com/users/antiagainst/orgs","repos_url":"https://api.github.com/users/antiagainst/repos","events_url":"https://api.github.com/users/antiagainst/events{/privacy}","received_events_url":"https://api.github.com/users/antiagainst/received_events","type":"User","site_admin":false},"repo":{"id":83722922,"node_id":"MDEwOlJlcG9zaXRvcnk4MzcyMjkyMg==","name":"DirectXShaderCompiler","full_name":"antiagainst/DirectXShaderCompiler","owner":{"login":"antiagainst","id":487928,"node_id":"MDQ6VXNlcjQ4NzkyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/487928?v=4","gravatar_id":"","url":"https://api.github.com/users/antiagainst","html_url":"https://github.com/antiagainst","followers_url":"https://api.github.com/users/antiagainst/followers","following_url":"https://api.github.com/users/antiagainst/following{/other_user}","gists_url":"https://api.github.com/users/antiagainst/gists{/gist_id}","starred_url":"https://api.github.com/users/antiagainst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antiagainst/subscriptions","organizations_url":"https://api.github.com/users/antiagainst/orgs","repos_url":"https://api.github.com/users/antiagainst/repos","events_url":"https://api.github.com/users/antiagainst/events{/privacy}","received_events_url":"https://api.github.com/users/antiagainst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antiagainst/DirectXShaderCompiler","description":"This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.","fork":true,"url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler","forks_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/forks","keys_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/teams","hooks_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/hooks","issue_events_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/issues/events{/number}","events_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/events","assignees_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/assignees{/user}","branches_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/branches{/branch}","tags_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/tags","blobs_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/statuses/{sha}","languages_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/languages","stargazers_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/stargazers","contributors_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/contributors","subscribers_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/subscribers","subscription_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/subscription","commits_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/contents/{+path}","compare_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/merges","archive_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/downloads","issues_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/issues{/number}","pulls_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/pulls{/number}","milestones_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/milestones{/number}","notifications_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/labels{/name}","releases_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/releases{/id}","deployments_url":"https://api.github.com/repos/antiagainst/DirectXShaderCompiler/deployments","created_at":"2017-03-02T20:42:49Z","updated_at":"2018-07-04T14:30:26Z","pushed_at":"2018-07-27T14:16:41Z","git_url":"git://github.com/antiagainst/DirectXShaderCompiler.git","ssh_url":"git@github.com:antiagainst/DirectXShaderCompiler.git","clone_url":"https://github.com/antiagainst/DirectXShaderCompiler.git","svn_url":"https://github.com/antiagainst/DirectXShaderCompiler","homepage":null,"size":36312,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":8,"watchers":4,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"29f2f8c19892b83b5cdb1cabcb97bf53e8b03ba1","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":75787966,"node_id":"MDEwOlJlcG9zaXRvcnk3NTc4Nzk2Ng==","name":"DirectXShaderCompiler","full_name":"Microsoft/DirectXShaderCompiler","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/DirectXShaderCompiler","description":"This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.","fork":false,"url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler","forks_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/forks","keys_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/teams","hooks_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/events","assignees_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/tags","blobs_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/languages","stargazers_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/subscription","commits_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/merges","archive_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/downloads","issues_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/deployments","created_at":"2016-12-07T01:42:19Z","updated_at":"2018-07-27T00:51:14Z","pushed_at":"2018-07-27T14:17:15Z","git_url":"git://github.com/Microsoft/DirectXShaderCompiler.git","ssh_url":"git@github.com:Microsoft/DirectXShaderCompiler.git","clone_url":"https://github.com/Microsoft/DirectXShaderCompiler.git","svn_url":"https://github.com/Microsoft/DirectXShaderCompiler","homepage":null,"size":36455,"stargazers_count":899,"watchers_count":899,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":132,"mirror_url":null,"archived":false,"open_issues_count":69,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":132,"open_issues":69,"watchers":899,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459"},"html":{"href":"https://github.com/Microsoft/DirectXShaderCompiler/pull/1459"},"issue":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1459"},"comments":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/issues/1459/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/pulls/1459/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/DirectXShaderCompiler/statuses/fc6ca1c4efef54526dcc0a5ed33ab3eb3b17712e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ehsannas"}}