Displaying 4 results from an estimated 4 matches for "ismetadataty".
2010 Feb 10
0
[LLVMdev] [patch] Union Types - work in progress
...onst Type *type, ...) {
+ va_list ap;
+ std::vector<const llvm::Type*> UnionFields;
+ va_start(ap, type);
Please use smallvector.
+bool UnionType::isValidElementType(const Type *ElemTy) {
+ return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() &&
+ !ElemTy->isMetadataTy() && !isa<FunctionType>(ElemTy);
+}
Isn't there a better predicate somewhere?
+LLVMTypeRef LLVMUnionTypeInContext(LLVMContextRef C, LLVMTypeRef *ElementTypes,
+ unsigned ElementCount) {
+ std::vector<const Type*> Tys;
+ for (LLVMTypeRef *I = Ele...
2010 Feb 10
3
[LLVMdev] [patch] Union Types - work in progress
ping...
On Thu, Jan 28, 2010 at 12:25 PM, Talin <viridia at gmail.com> wrote:
> OK here's a new version of the patch - and the unions.ll test actually
> passes :)
>
> On Mon, Jan 18, 2010 at 1:40 PM, Chris Lattner <clattner at apple.com> wrote:
>
>>
>> On Jan 16, 2010, at 11:15 AM, Talin wrote:
>>
>> OK here's the patch for real this
2013 Mar 06
0
[LLVMdev] LangRef/implementation inconsistency: What is the intended constraint on function return types?
...label."
<http://llvm.org/docs/LangRef.html#id15>
On the other hand, the actual implementation of
FunctionType::isValidReturnType opines that:
bool FunctionType::isValidReturnType(Type *RetTy) {
return !RetTy->isFunctionTy() && !RetTy->isLabelTy() &&
!RetTy->isMetadataTy();
}
These definitions are mutually incompatible. What is the intended definition?
-- Sean Silva
2010 Feb 12
1
[LLVMdev] [patch] Union Types - work in progress
...va_start(ap, type);
>
> Please use smallvector.
>
Done - although I was just copying from what Struct does.
>
> +bool UnionType::isValidElementType(const Type *ElemTy) {
> + return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() &&
> + !ElemTy->isMetadataTy() && !isa<FunctionType>(ElemTy);
> +}
>
> Isn't there a better predicate somewhere?
>
Apparently there is now. Done.
>
> +LLVMTypeRef LLVMUnionTypeInContext(LLVMContextRef C, LLVMTypeRef
> *ElementTypes,
> + unsigned ElementCount...