search for: utyp

Displaying 7 results from an estimated 7 matches for "utyp".

Did you mean: typ
2010 Jan 18
5
[LLVMdev] [patch] Union Types - work in progress
...ating? This happens a few times in LLParser.cpp + if (ID.ConstantVal->getType() != Ty) { + // Allow a constant struct with a single member to be converted + // to a union, if the union has a member which is the same type + // as the struct member. + if (const UnionType* utype = dyn_cast<UnionType>(Ty)) { + if (const StructType* stype = dyn_cast<StructType>( + ID.ConstantVal->getType())) { + if (stype->getNumContainedTypes() == 1) { + int index = utype->getElementTypeIndex(stype- >getContainedType(0)); +...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...in LLParser.cpp > > > + if (ID.ConstantVal->getType() != Ty) { > + // Allow a constant struct with a single member to be converted > + // to a union, if the union has a member which is the same type > + // as the struct member. > + if (const UnionType* utype = dyn_cast<UnionType>(Ty)) { > + if (const StructType* stype = dyn_cast<StructType>( > + ID.ConstantVal->getType())) { > + if (stype->getNumContainedTypes() == 1) { > + int index = > utype->getElementTypeIndex(stype->getC...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...in LLParser.cpp > > > + if (ID.ConstantVal->getType() != Ty) { > + // Allow a constant struct with a single member to be converted > + // to a union, if the union has a member which is the same type > + // as the struct member. > + if (const UnionType* utype = dyn_cast<UnionType>(Ty)) { > + if (const StructType* stype = dyn_cast<StructType>( > + ID.ConstantVal->getType())) { > + if (stype->getNumContainedTypes() == 1) { > + int index = > utype->getElementTypeIndex(stype->getC...
2010 Jan 16
0
[LLVMdev] [patch] Union Types - work in progress
OK here's the patch for real this time :) On Fri, Jan 15, 2010 at 4:36 PM, Talin <viridia at gmail.com> wrote: > Here's a work in progress of the union patch. Note that the test "union.ll" > does not work, so you probably don't want to check this in as is. However, > I'd be interested in any feedback you're willing to give. > > -- > -- Talin
2010 Jan 16
2
[LLVMdev] [patch] Union Types - work in progress
Here's a work in progress of the union patch. Note that the test "union.ll" does not work, so you probably don't want to check this in as is. However, I'd be interested in any feedback you're willing to give. -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jan 04
2
Re: [nut-Patches][303751] Checking UPS Temperature
...temperature"; > + numq = 3; > + } > +//EW <<<<<< > + > if (numq == 0) { > upslogx(LOG_ERR, "get_var: programming error: var=%s", var); > @@ -770,4 +782,21 @@ > } > > +//EW >>>>>> > +static void ups_overtemp(utype *ups) > +{ > + if (flag_isset(ups->status, ST_OVERTEMP)) { /* no change */ > + debug("ups_overtemp(%s) (no change)\n", ups->sys); > + return; > + } > + > + debug("ups_overtemp(%s) (first time)\n", ups->sys); > + > + /* must have changed fr...
2010 Feb 10
3
[LLVMdev] [patch] Union Types - work in progress
...;> >> + if (ID.ConstantVal->getType() != Ty) { >> + // Allow a constant struct with a single member to be converted >> + // to a union, if the union has a member which is the same type >> + // as the struct member. >> + if (const UnionType* utype = dyn_cast<UnionType>(Ty)) { >> + if (const StructType* stype = dyn_cast<StructType>( >> + ID.ConstantVal->getType())) { >> + if (stype->getNumContainedTypes() == 1) { >> + int index = >> utype->getElementType...