{"id":2969,"date":"2013-08-29T01:27:49","date_gmt":"2013-08-28T16:27:49","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=2969"},"modified":"2013-08-29T01:27:49","modified_gmt":"2013-08-28T16:27:49","slug":"5-2-2-ifthenelse%e3%81%ae%e3%81%9f%e3%82%81%e3%81%aeast%e6%8b%a1%e5%bc%b5","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/2969","title":{"rendered":"5.2.2. if\/then\/else\u306e\u305f\u3081\u306eAST\u62e1\u5f35"},"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\u7b2c5\u7ae0 \u4e07\u83ef\u93e1: \u8a00\u8a9e\u306e\u62e1\u5f35: \u5236\u5fa1\u30d5\u30ed\u30fc<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl05.html#ast-extensions-for-if-then-else\" target=\"_blank\">\u7b2c2.2\u7bc0 if\/then\/else\u306e\u305f\u3081\u306eAST\u62e1\u5f35<\/a><\/p>\n<p>\u65b0\u3057\u3044\u5f0f\u3092AST\u3067\u8868\u73fe\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044AST\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\/\/\/ IfExprAST - if\/then\/else\u306e\u305f\u3081\u306e\u5f0f\u30af\u30e9\u30b9\u3002\r\nclass IfExprAST : public ExprAST {\r\n  ExprAST *Cond, *Then, *Else;\r\npublic:\r\n  IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)\r\n    : Cond(cond), Then(then), Else(_else) {}\r\n  virtual Value *Codegen();\r\n};<\/pre>\n<p>\u3053\u306eAST\u30ce\u30fc\u30c9\u306f\u3001\u5e7e\u3064\u304b\u306e\u526f\u6b21\u5f0f\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6301\u3064\u3060\u3051\u3067\u3042\u308b\u3002<\/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\u7b2c5\u7ae0 \u4e07\u83ef\u93e1: \u8a00\u8a9e\u306e\u62e1\u5f35: \u5236\u5fa1\u30d5\u30ed\u30fc<br \/>\n<a href=\"http:\/\/llvm.org\/docs\/tutorial\/LangImpl05.html#ast-extensions-for-if-then-else\" target=\"_blank\">\u7b2c2.2\u7bc0 if\/then\/else\u306e\u305f\u3081\u306eAST\u62e1\u5f35<\/a><\/p>\n<p>\u65b0\u3057\u3044\u5f0f\u3092AST\u3067\u8868\u73fe\u3059\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044AST\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\/\/\/ IfExprAST - if\/then\/else\u306e\u305f\u3081\u306e\u5f0f\u30af\u30e9\u30b9\u3002\r\nclass IfExprAST : public ExprAST {\r\n  ExprAST *Cond, *Then, *Else;\r\npublic:\r\n  IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)\r\n    : Cond(cond), Then(then), Else(_else) {}\r\n  virtual Value *Codegen();\r\n};<\/pre>\n<p>\u3053\u306eAST\u30ce\u30fc\u30c9\u306f\u3001\u5e7e\u3064\u304b\u306e\u526f\u6b21\u5f0f\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6301\u3064\u3060\u3051\u3067\u3042\u308b\u3002<\/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-2969","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\/2969","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=2969"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/2969\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=2969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=2969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=2969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}