search for: getkindasstr

Displaying 5 results from an estimated 5 matches for "getkindasstr".

2013 Jun 17
2
[LLVMdev] opt fails with assertion in Attributes.cpp
Hello, I'm getting an error when running opt with what seems to be a valid bytecode file compiled from one the Linux Kernel files. The error is: opt: /home/scratch/llvm/lib/IR/Attributes.cpp:119: llvm::StringRef llvm::Attribute::getKindAsString() const: Assertion `isStringAttribute() && "Invalid attribute type to get the kind as a string!"' failed. I send you in attach the .{c,bc,ll} and the log file of the error. Any insight on how to solve this would be quite helpful because it occurs in several bytecode files...
2013 Jun 18
0
[LLVMdev] opt fails with assertion in Attributes.cpp
...;marceloabsousa at gmail.com> wrote: > Hello, > > I'm getting an error when running opt with what seems to be a valid bytecode file compiled from one the Linux Kernel files. > The error is: > opt: /home/scratch/llvm/lib/IR/Attributes.cpp:119: llvm::StringRef llvm::Attribute::getKindAsString() const: Assertion `isStringAttribute() && "Invalid attribute type to get the kind as a string!"' failed. > > I send you in attach the .{c,bc,ll} and the log file of the error. > Any insight on how to solve this would be quite helpful because it occurs in several...
2013 Jun 20
1
[LLVMdev] opt fails with assertion in Attributes.cpp
...: > > > Hello, > > > > I'm getting an error when running opt with what seems to be a valid > bytecode file compiled from one the Linux Kernel files. > > The error is: > > opt: /home/scratch/llvm/lib/IR/Attributes.cpp:119: llvm::StringRef > llvm::Attribute::getKindAsString() const: Assertion `isStringAttribute() && > "Invalid attribute type to get the kind as a string!"' failed. > > > > I send you in attach the .{c,bc,ll} and the log file of the error. > > Any insight on how to solve this would be quite helpful because it...
2014 Mar 13
2
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
...dAsEnum(), RA.getKindAsEnum())) > + return Res; > + break; > + case Align: > + if (int Res = cmpNumbers(LA.getValueAsInt(), RA.getValueAsInt())) > + return Res; > + break; > + case Other: > + if (int Res = cmpStrings(LA.getKindAsString(), > RA.getKindAsString())) > + return Res; > + if (int Res = cmpStrings(LA.getValueAsString(), > RA.getValueAsString())) > + return Res; > + break; > + } > > Attributes already have operator< and operator==. Please reuse them. &...
2014 Feb 27
3
[LLVMdev] MergeFunctions: reduce complexity to O(log(N))
Hi Nick, I tried to rework changes as you requested. One of patches (0004 with extra assertions) has been removed. > + bool isEquivalentType(Type *Ty1, Type *Ty2) const { > + return cmpType(Ty1, Ty2) == 0; > + } > > Why do we still need isEquivalentType? Can we nuke this? Yup. After applying all the patches isEquivalentType will be totally replaced with cmpType. All