<div dir="ltr">So, I did a quick experiment with the following patch:<div><br></div><div><div>diff --git a/include/llvm/IR/Type.h b/include/llvm/IR/Type.h</div><div>index 1bf8789..16bd376 100644</div><div>--- a/include/llvm/IR/Type.h</div>
<div>+++ b/include/llvm/IR/Type.h</div><div>@@ -73,8 +73,8 @@ public:</div><div>     VectorTyID,      ///< 15: SIMD 'packed' format, or other vector type</div><div><br></div><div>     NumTypeIDs,                         // Must remain as last defined ID</div>
<div>-    LastPrimitiveTyID = X86_MMXTyID,</div><div>-    FirstDerivedTyID = IntegerTyID</div><div>+    LastPrimitiveTyID = IntegerTyID,</div><div>+    FirstDerivedTyID = FunctionTyID</div><div>   };</div><div><br></div><div>
 private:</div></div><div><br></div><div>'ninja check-all' passes. The only users of isPrimitiveType also check isIntegerTy.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 August 2013 00:52, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@csail.mit.edu" target="_blank">kfischer@csail.mit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The LLVM docs seem to indicate that integer types are considered primitive, however looking at the code I see `FirstDerivedTyID = IntegerTyID`, implying that integers are derived rather than primitive. Should the docs be updated?<br>


</div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>