{"id":3035,"date":"2013-09-08T04:46:54","date_gmt":"2013-09-07T19:46:54","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=3035"},"modified":"2013-09-08T04:46:54","modified_gmt":"2013-09-07T19:46:54","slug":"7-8-%e5%85%a8%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/3035","title":{"rendered":"7.8. \u5168\u30b3\u30fc\u30c9"},"content":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c7\u7ae0 \u4e07\u83ef\u93e1: \u8a00\u8a9e\u306e\u62e1\u5f35: \u5909\u66f4\u53ef\u80fd\u306a\u5909\u6570\uff08Mutable Variables\uff09<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl07.html#id1\" target=\"_blank\">\u7b2c8\u7bc0 \u5168\u30b3\u30fc\u30c9<\/a><\/p>\n<p>\u3053\u308c\u304c\u3001\u6211\u3005\u304c\u4f8b\u3067\u7528\u3044\u305f\u3001\u5909\u6570\u3078\u306e\u4ee3\u5165\u3068var\/in\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u3088\u3063\u3066\u78e8\u304d\u3092\u639b\u3051\u305f\u30b3\u30fc\u30c9\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u3067\u3042\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \u30b3\u30f3\u30d1\u30a4\u30eb\r\nclang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy\r\n# \u5b9f\u884c\r\n.\/toy<\/pre>\n<p>\u4ee5\u4e0b\u30b3\u30fc\u30c9\u3002<br \/>\n<em>\u8a33\u6ce8: <a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl07.html#id1\" target=\"_blank\">\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u539f\u6587\u3092\u53c2\u7167\u3055\u308c\u305f\u3057\u3002<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/peta.okechan.net\/blog\/archives\/2836\" title=\"LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\">LLVM\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u5b9f\u88c5\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u65e5\u672c\u8a9e\u8a33<\/a><br \/>\n\u7b2c7\u7ae0 \u4e07\u83ef\u93e1: \u8a00\u8a9e\u306e\u62e1\u5f35: \u5909\u66f4\u53ef\u80fd\u306a\u5909\u6570\uff08Mutable Variables\uff09<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl07.html#id1\" target=\"_blank\">\u7b2c8\u7bc0 \u5168\u30b3\u30fc\u30c9<\/a><\/p>\n<p>\u3053\u308c\u304c\u3001\u6211\u3005\u304c\u4f8b\u3067\u7528\u3044\u305f\u3001\u5909\u6570\u3078\u306e\u4ee3\u5165\u3068var\/in\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u3088\u3063\u3066\u78e8\u304d\u3092\u639b\u3051\u305f\u30b3\u30fc\u30c9\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u3067\u3042\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \u30b3\u30f3\u30d1\u30a4\u30eb\r\nclang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy\r\n# \u5b9f\u884c\r\n.\/toy<\/pre>\n<p>\u4ee5\u4e0b\u30b3\u30fc\u30c9\u3002<br \/>\n<em>\u8a33\u6ce8: <a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl07.html#id1\" target=\"_blank\">\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u539f\u6587\u3092\u53c2\u7167\u3055\u308c\u305f\u3057\u3002<\/a><\/em><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[466,467],"class_list":["post-3035","post","type-post","status-publish","format-standard","hentry","category-tech","tag-kaleidoscope","tag-llvm"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/3035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=3035"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/3035\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=3035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=3035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=3035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}