<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How about some doxygen comments on those functions?<div><br></div><div>-Tanya</div><div><br><div><div>On Aug 13, 2009, at 5:30 PM, Owen Anderson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Author: resistor<br>Date: Thu Aug 13 19:30:41 2009<br>New Revision: 78969<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=78969&view=rev">http://llvm.org/viewvc/llvm-project?rev=78969&view=rev</a><br>Log:<br>Add helpers for fetching basic types.<br><br>Modified:<br>    llvm/trunk/include/llvm/Support/IRBuilder.h<br><br>Modified: llvm/trunk/include/llvm/Support/IRBuilder.h<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=78969&r1=78968&r2=78969&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=78969&r1=78968&r2=78969&view=diff</a><br><br>==============================================================================<br>--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)<br>+++ llvm/trunk/include/llvm/Support/IRBuilder.h Thu Aug 13 19:30:41 2009<br>@@ -124,6 +124,42 @@<br>   }<br><br>   //===--------------------------------------------------------------------===//<br>+  // Type creation methods<br>+  //===--------------------------------------------------------------------===//<br>+<br>+  const Type *getInt1Ty() {<br>+    return Type::getInt1Ty(Context);<br>+  }<br>+  <br>+  const Type *getInt8Ty() {<br>+    return Type::getInt8Ty(Context);<br>+  }<br>+  <br>+  const Type *getInt16Ty() {<br>+    return Type::getInt16Ty(Context);<br>+  }<br>+  <br>+  const Type *getInt32Ty() {<br>+    return Type::getInt32Ty(Context);<br>+  }<br>+  <br>+  const Type *getInt64Ty() {<br>+    return Type::getInt64Ty(Context);<br>+  }<br>+<br>+  const Type *getFloatTy() {<br>+    return Type::getFloatTy(Context);<br>+  }<br>+  <br>+  const Type *getDoubleTy() {<br>+    return Type::getDoubleTy(Context);<br>+  }<br>+  <br>+  const Type *getVoidTy() {<br>+    return Type::getVoidTy(Context);<br>+  }<br>+<br>+  //===--------------------------------------------------------------------===//<br>   // Instruction creation methods: Terminators<br>   //===--------------------------------------------------------------------===//<br><br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></div></blockquote></div><br></div></body></html>