{"action":"created","issue":{"url":"https://api.github.com/repos/halide/Halide/issues/2207","repository_url":"https://api.github.com/repos/halide/Halide","labels_url":"https://api.github.com/repos/halide/Halide/issues/2207/labels{/name}","comments_url":"https://api.github.com/repos/halide/Halide/issues/2207/comments","events_url":"https://api.github.com/repos/halide/Halide/issues/2207/events","html_url":"https://github.com/halide/Halide/issues/2207","id":244757476,"number":2207,"title":"generator for iOS simulator","user":{"login":"awakecoding","id":295841,"avatar_url":"https://avatars0.githubusercontent.com/u/295841?v=4","gravatar_id":"","url":"https://api.github.com/users/awakecoding","html_url":"https://github.com/awakecoding","followers_url":"https://api.github.com/users/awakecoding/followers","following_url":"https://api.github.com/users/awakecoding/following{/other_user}","gists_url":"https://api.github.com/users/awakecoding/gists{/gist_id}","starred_url":"https://api.github.com/users/awakecoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awakecoding/subscriptions","organizations_url":"https://api.github.com/users/awakecoding/orgs","repos_url":"https://api.github.com/users/awakecoding/repos","events_url":"https://api.github.com/users/awakecoding/events{/privacy}","received_events_url":"https://api.github.com/users/awakecoding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-21T19:07:42Z","updated_at":"2017-09-07T20:35:36Z","closed_at":null,"author_association":"NONE","body":"I know the iOS simulator isn't useful for production usage, but it simplifies development. I'm trying to get my generator to correctly produce object files for the simulator, but it fails like this:\r\n\r\n./wayk-halide-generator -g YCoCgR420ToRgb -e o -o /opt/wayk/dev/WaykNow/build/generated/halide -n YCoCgR420ToRgb_x86-64 target=ios-x86-64-no_runtime\r\nInternal error at /opt/wayk/tmp/Halide/src/LLVM_Output.cpp:38\r\nWarning: module's data layout does not match target machine's\r\ne-m:o-i64:64-f80:128-n8:16:32:64-S128\r\ne-m:e-i64:64-f80:128-n8:16:32:64-S128\r\nAbort trap: 6\r\n\r\nThe same generator works file for all ARM-based iOS platforms. If I replace \"ios\" with \"osx\", it generates, but for the wrong target platform. I looked at LLVM_Output.cpp and LLVM_Runtime_Linker.cpp, and both seem to correctly handle the case for the ios platform + x86-32/64 architectures.\r\n\r\nThe target triplet looks fine, so there appears to be a broken check somewhere in the code, but I can't find it. There is only one place that may be worth looking into:\r\nhttps://github.com/halide/Halide/blob/master/src/LLVM_Runtime_Linker.cpp#L232\r\n\r\nLooking at the code, the DataLayout for the iOS + x86 case would fallback to the same case used by Linux/Android, which I guess is pretty much wrong. I don't know much about the DataLayout formats, so I don't really know how to try to fix this."},"comment":{"url":"https://api.github.com/repos/halide/Halide/issues/comments/327920350","html_url":"https://github.com/halide/Halide/issues/2207#issuecomment-327920350","issue_url":"https://api.github.com/repos/halide/Halide/issues/2207","id":327920350,"user":{"login":"steven-johnson","id":328955,"avatar_url":"https://avatars3.githubusercontent.com/u/328955?v=4","gravatar_id":"","url":"https://api.github.com/users/steven-johnson","html_url":"https://github.com/steven-johnson","followers_url":"https://api.github.com/users/steven-johnson/followers","following_url":"https://api.github.com/users/steven-johnson/following{/other_user}","gists_url":"https://api.github.com/users/steven-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-johnson/subscriptions","organizations_url":"https://api.github.com/users/steven-johnson/orgs","repos_url":"https://api.github.com/users/steven-johnson/repos","events_url":"https://api.github.com/users/steven-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/steven-johnson/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T20:35:36Z","updated_at":"2017-09-07T20:35:36Z","author_association":"CONTRIBUTOR","body":"Can we consider this fixed?"}}
{"actor":{"display_login":"steven-johnson"}}