{"id":7216,"date":"2019-03-24T20:42:08","date_gmt":"2019-03-24T11:42:08","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7216"},"modified":"2019-03-28T13:58:38","modified_gmt":"2019-03-28T04:58:38","slug":"llvm-%e3%82%92-visual-studio-%e3%81%ae%e3%83%97%e3%83%a9%e3%83%83%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%83%84%e3%83%bc%e3%83%ab%e3%82%bb%e3%83%83%e3%83%88%e3%81%a8%e3%81%97%e3%81%a6%e4%bd%bf","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7216","title":{"rendered":"LLVM \u3092 Visual Studio \u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u3046"},"content":{"rendered":"<p>\u6614 <a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6125\">Windows \u4e0a\u3067\u306e Visual C++ \u3068 GCC\/Clang \u306e\u76f8\u4e92\u904b\u7528<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307e\u3057\u305f\u304c\u3001\u3055\u3063\u304d\u8abf\u3079\u305f\u3089\u30aa\u30ea\u30b8\u30ca\u30eb\u306e LLVM \uff08Clang\/C2 \u3067\u306f\u306a\u3044\uff09\u3092 Visual Studio \u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3066 MSVC \u3068\u3061\u3083\u3093\u3068\u4e92\u63db\u6027\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u77e5\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u307e\u305a <a href=\"http:\/\/releases.llvm.org\/download.html\">LLVM \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u3067 pre-built binary \u3092\u53d6\u3063\u3066\u304d\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001 Visual Studio Marketplace \u306b\u3042\u308b <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=LLVMExtensions.llvm-toolchain\">LLVM Compiler Toolchain<\/a> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff08\u73fe\u6642\u70b9\u3067\u306f VS2019 preview \u306b\u306f\u672a\u5bfe\u5fdc\u3089\u3057\u3044\uff09\u3002\u3053\u3046\u3059\u308b\u3068 Visual Studio \u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u300d\u306e\u3068\u3053\u308d\u306b LLVM \u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset.png\" alt=\"\" width=\"420\" height=\"300\" class=\"alignnone size-full wp-image-7218\" \/><\/a><\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset-zoom.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset-zoom.png\" alt=\"\" width=\"600\" height=\"120\" class=\"alignnone size-full wp-image-7220\" \/><\/a><\/p>\n<p>LLVM \u3092\u9078\u629e\u3059\u308b\u3068 LLVM \u306e\u30d0\u30a4\u30ca\u30ea\u3092\u4f7f\u3046\u304b\u3069\u3046\u304b\u3068\u305d\u306e\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b\u30da\u30fc\u30b8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002 pre-built binary \u3060\u3051\u3067\u306a\u304f\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3057\u305f\u3082\u306e\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset-llvm-config.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2019\/03\/vs2017-llvm-toolset-llvm-config.png\" alt=\"\" width=\"420\" height=\"300\" class=\"alignnone size-full wp-image-7219\" \/><\/a><\/p>\n<p>\u4e92\u63db\u6027\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001 Visual Studio Extension \u306e\u30da\u30fc\u30b8\u306b\u306f\u3053\u3046\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u30d8\u30c3\u30c0\u3092\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/li>\n<li>LTCG \uff08Link-Time Code Generation: \u30ea\u30f3\u30af\u6642\u30b3\u30fc\u30c9\u751f\u6210\uff09\u3068 PGO \uff08Profile Guided Optimization: \u30ac\u30a4\u30c9\u4ed8\u304d\u6700\u9069\u5316\uff09\u3068\u306f\u4e92\u63db\u6027\u304c\u7121\u3044\u306e\u3067\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\uff08\u8a33\u6ce8\uff1aLTCG \u306a\u3069\u3092\u6709\u52b9\u306b\u3057\u305f\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u30ea\u30f3\u30af\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3001\u3050\u3089\u3044\u306e\u610f\u5473\u3060\u3068\u601d\u308f\u308c\u308b\u304c\u3001LLVM \u306e LLD \u3067\u306f\u306a\u304f Microsoft \u306e LINK \u3092\u4f7f\u3048\u3070\u30ea\u30f3\u30af\u3060\u3051\u306a\u3089\u3067\u304d\u308b\u6c17\u304c\u3059\u308b\uff09<\/li>\n<li>cl.exe \u306e\u4e0d\u660e\u306a\uff08\u8a33\u6ce8\uff1a\u6587\u66f8\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u3050\u3089\u3044\u306e\u610f\u5473\u3060\u3068\u601d\u308f\u308c\u308b\uff09\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u3044\u304f\u3064\u304b\u6c17\u306b\u306a\u308b\u70b9\u3092\u975e\u5e38\u306b\u8efd\u304f\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001<\/p>\n<ul>\n<li>\u547c\u3073\u51fa\u3057\u898f\u7d04\u306b\u306f\u4e92\u63db\u6027\u304c\u3042\u308b\uff08\u5f53\u305f\u308a\u524d\u3060\uff09<\/li>\n<li>C++ \u540d\u524d\u4fee\u98fe\u306b\u3082\u4e92\u63db\u6027\u304c\u3042\u308b<\/li>\n<li>\u4f8b\u5916\u3092\u6295\u3052\u3066\u3082\u4e92\u63db\u6027\u304c\u3042\u308b<\/li>\n<li>\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u306b\u3082\u4e92\u63db\u6027\u304c\u3042\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u6587\u53e5\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e00\u65b9\u3001\u4ee5\u4e0b\u306e\uff08\u30de\u30a4\u30ca\u30fc\u306a\uff09\u554f\u984c\u306b\u3076\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>Visual Studio \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30da\u30fc\u30b8\u4e0a\u3067\u306f\u62e1\u5f35\u547d\u4ee4\u30bb\u30c3\u30c8\u306e\u6307\u5b9a\u304c SSE\/SSE2\/AVX\/AVX2 \u3057\u304b\u306a\u3044\u306e\u3067\u3001\u4f8b\u3048\u3070 SSSE3 \u307e\u3067\u306e intrinsic \u3092\u6709\u52b9\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u624b\u66f8\u304d\u3067 <code>-mssse3<\/code> \u3068\u3044\u3063\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 cl.exe \u306e\u5834\u5408\u306f SSE2 \u3092\u6307\u5b9a\u3057\u3066\u3082 SSE4.2 \u307e\u3067\u306e intrinsic \u304c\u4f7f\u3048\u3066\u3057\u307e\u3046\u3002<\/li>\n<li>\u51fa\u529b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u4e2d\u9593\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u7570\u306a\u308b\u3002 x64 \u306e\u5834\u5408\u3001 cl.exe \u3060\u3068\u51fa\u529b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c $(SolutionDir)$(Platform)\\$(Configuration)\\ \u3068\u306a\u308b\u304c\u3001 LLVM \u3060\u3068 $(SolutionDir)$(Configuration)\\ \u3068\u306a\u308a $(Platform)\\ \u304c\u5165\u3089\u306a\u3044\u3002\u7d50\u679c\u3068\u3057\u3066 x86 \u3068 x64 \u3067\u6df7\u3056\u3063\u3066\u3057\u307e\u3046\u3002\uff08\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308c\u3070\u554f\u984c\u306f\u7121\u3044\uff09<\/li>\n<li>ARM64 \u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u305f\u30af\u30ed\u30b9\u958b\u767a\u306f\u3067\u304d\u306a\u3044\u3002\uff08\u81ea\u524d\u3067\u9811\u5f35\u3063\u3066\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3066\u2026\u3068\u304b\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\uff09<\/li>\n<\/ul>\n<p>Ut Video Codec Suite \u3067\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30a2\u30bb\u30f3\u30d6\u30e9\u3092\u4f7f\u3046\u305f\u3081\u306b\u4e00\u90e8\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f Cygwin \u306e GCC \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u3063\u3066\u82e5\u5e72\u6c17\u6301\u3061\u60aa\u3044\u306e\u3067\u3059\u304c\u3001\u5168\u4f53\u3092 Clang \u3067\u30d3\u30eb\u30c9\u3059\u308c\u3070\u305d\u3093\u306a\u3053\u3068\u3057\u306a\u304f\u3066\u826f\u304f\u306a\u308b\u308f\u3051\u3067\u3001\u3053\u3063\u3061\u306e\u65b9\u304c\u3044\u3044\u306e\u3067\u306f\u2026\uff1f \u3068\u3044\u3046\u6c17\u304c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b GCC \u3067\u540c\u3058\u30ec\u30d9\u30eb\u3067 Visual Studio \u3078\u306e\u7d71\u5408\u304c\u3067\u304d\u308b\u306e\u304b\u3067\u3059\u304c\u3001\u96d1\u306b\u30b0\u30b0\u3063\u305f\u9650\u308a\u3067\u306f\u516c\u5f0f\u3067\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u81ea\u524d\u3067\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u5b9a\u7fa9\u3092\u66f8\u3051\u3070\u3042\u308b\u7a0b\u5ea6\u3044\u3051\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u3001\u540d\u524d\u4fee\u98fe\u306b\u3059\u3089\u4e92\u63db\u6027\u304c\u7121\u3044\u306e\u3067 C \u306a\u3089\u3068\u3082\u304b\u304f C++ \u3067\u306f\u4f7f\u3044\u7269\u306b\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6614 Windows \u4e0a\u3067\u306e Visual C++ \u3068 GCC\/Clang \u306e\u76f8\u4e92\u904b\u7528\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u307e\u3057\u305f\u304c\u3001\u3055\u3063\u304d\u8abf\u3079\u305f\u3089\u30aa\u30ea\u30b8\u30ca\u30eb\u306e LLVM \uff08Clang\/C2 \u3067\u306f\u306a\u3044\uff09\u3092 Visual Studio \u306e\u30d7\u30e9\u30c3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7216","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7216"}],"version-history":[{"count":11,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7216\/revisions"}],"predecessor-version":[{"id":7232,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7216\/revisions\/7232"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7216"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}