[LLVMdev] Are integer types primitive?
Joey Gouly
joel.gouly at gmail.com
Mon Aug 12 14:06:39 PDT 2013
So, I did a quick experiment with the following patch:
diff --git a/include/llvm/IR/Type.h b/include/llvm/IR/Type.h
index 1bf8789..16bd376 100644
--- a/include/llvm/IR/Type.h
+++ b/include/llvm/IR/Type.h
@@ -73,8 +73,8 @@ public:
VectorTyID, ///< 15: SIMD 'packed' format, or other vector type
NumTypeIDs, // Must remain as last defined ID
- LastPrimitiveTyID = X86_MMXTyID,
- FirstDerivedTyID = IntegerTyID
+ LastPrimitiveTyID = IntegerTyID,
+ FirstDerivedTyID = FunctionTyID
};
private:
'ninja check-all' passes. The only users of isPrimitiveType also check
isIntegerTy.
On 12 August 2013 00:52, Keno Fischer <kfischer at csail.mit.edu> wrote:
> 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?
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/02a575cd/attachment.html>
More information about the llvm-dev
mailing list