{"action":"closed","issue":{"url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/118","labels_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/118/comments","events_url":"https://api.github.com/repos/CTSRD-CHERI/llvm/issues/118/events","html_url":"https://github.com/CTSRD-CHERI/llvm/issues/118","id":93271866,"number":118,"title":"Use CClearRegs when zeroing registers","user":{"login":"davidchisnall","id":404454,"avatar_url":"https://avatars.githubusercontent.com/u/404454?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchisnall","html_url":"https://github.com/davidchisnall","followers_url":"https://api.github.com/users/davidchisnall/followers","following_url":"https://api.github.com/users/davidchisnall/following{/other_user}","gists_url":"https://api.github.com/users/davidchisnall/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchisnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchisnall/subscriptions","organizations_url":"https://api.github.com/users/davidchisnall/orgs","repos_url":"https://api.github.com/users/davidchisnall/repos","events_url":"https://api.github.com/users/davidchisnall/events{/privacy}","received_events_url":"https://api.github.com/users/davidchisnall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CTSRD-CHERI/llvm/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T12:53:34Z","updated_at":"2015-07-08T14:58:38Z","closed_at":"2015-07-08T14:58:38Z","body":"LLVM should (optionally) use CClearRegs when zeroing argument registers before a call and return registers after (possibly not sensible for return registers, as we usually only need to zero one or two).\r\n\r\nThis should probably be done with a new DAG node and pseudo for zeroing registers and allow the MC layer to expand it to the correct operations depending on the target."}}