Displaying 8 results from an estimated 8 matches for "constantclass".
2005 May 03
2
[LLVMdev] VC++ build broken
The recently added code:
static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) {
if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY);
if (V2->isNullValue()) return 0;
BuiltinType R = (BuiltinType)V1->getValue() /
(BuiltinType)V2...
2005 May 03
0
[LLVMdev] VC++ build broken
On Mon, 2 May 2005, Jeff Cohen wrote:
> The recently added code:
> static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) {
> if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
> if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY);
> if (V2->isNullValue()) return 0;
> BuiltinType R = (BuiltinType)V1->getValue() / (Bui...
2005 May 03
2
[LLVMdev] VC++ build broken
Yes, that will work. I'll make the change.
Chris Lattner wrote:
> On Mon, 2 May 2005, Jeff Cohen wrote:
>
>> The recently added code:
>> static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) {
>> if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
>> if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty,
>> -INFINITY);
>> if (V2->isNullValue()) return 0;
>> BuiltinType R = (BuiltinTyp...
2005 May 03
0
[LLVMdev] VC++ build broken
...he change.
While you're at it, please remove this line, which is dead:
if (V2->isNullValue()) return 0;
Thanks,
-Chris
> Chris Lattner wrote:
>
>> On Mon, 2 May 2005, Jeff Cohen wrote:
>>
>>> The recently added code:
>>> static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) {
>>> if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
>>> if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY);
>>> if (V2->isNullValue()) return 0;
>>> BuiltinType R = (Buil...
2011 Jun 24
2
[LLVMdev] inefficiencies in ConstantUniqueMap ?
Hi,
Consider ConstantUniqueMap::getOrCreate() (in lib/VMCore/ConstantsContext.h):
/// getOrCreate - Return the specified constant from the map, creating it if
/// necessary.
ConstantClass *getOrCreate(const TypeClass *Ty, ValRefType V) {
MapKey Lookup(Ty, V);
ConstantClass* Result = 0;
...
For array (or struct or vector) constants, typically:
ValType = vector<Constant*>
ValRefType = ArrayRef<Constant*>
MapKey = pair<ArrayType, vector<Constant*>>...
2008 Jun 11
0
[LLVMdev] Warnings
As of late I see these warnings:
llvm[1]: Compiling Constants.cpp for Release build
/usr/include/c++/4.0.0/bits/stl_pair.h: In member function
'ConstantClass* llvm::ValueMap<ValType, TypeClass, ConstantClass,
HasLargeKey>::getOrCreate(const TypeClass*, const ValType&) [with
ValType = <unnamed>::ExprMapKeyType, TypeClass = llvm::Type,
ConstantClass = llvm::ConstantExpr, bool HasLargeKey = false]':
/usr/include/c++/4.0.0/bits/stl...
2011 Jun 24
0
[LLVMdev] inefficiencies in ConstantUniqueMap ?
On Jun 24, 2011, at 8:28 AM, Jay Foad wrote:
> Hi,
>
> Consider ConstantUniqueMap::getOrCreate() (in lib/VMCore/ConstantsContext.h):
>
> /// getOrCreate - Return the specified constant from the map, creating it if
> /// necessary.
> ConstantClass *getOrCreate(const TypeClass *Ty, ValRefType V) {
> MapKey Lookup(Ty, V);
> ConstantClass* Result = 0;
> ...
>
> For array (or struct or vector) constants, typically:
>
> ValType = vector<Constant*>
> ValRefType = ArrayRef<Constant*>
> MapKey = pair...
2010 Jul 16
3
[LLVMdev] java front-end
...ys true due to limited range
of data type
ClassFile.cpp: In static member function ‘static llvm::sys::Path
llvm::Java::ClassFile::getFileForClass(const std::string&)’:
ClassFile.cpp:167: error: ‘class llvm::sys::Path’ has no member named
‘toString’
ClassFile.cpp: In member function ‘llvm::Java::ConstantClass*
llvm::Java::ClassFile::getConstantClass(unsigned int) const’:
ClassFile.cpp:218: error: ‘dynamic_cast’ not permitted with -fno-rtti
ClassFile.cpp: In member function ‘llvm::Java::ConstantMemberRef*
llvm::Java::ClassFile::getConstantMemberRef(unsigned int) const’:
ClassFile.cpp:225: error: ‘dynamic...