search for: itostr

Displaying 6 results from an estimated 6 matches for "itostr".

Did you mean: utostr
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...// Make sure that the value is representable for this type. if (Size < 32) { int Val = (II->getValue() << (32-Size)) >> (32-Size); - if (Val != II->getValue()) - TP.error("Sign-extended integer value '" + itostr(II->getValue())+ - "' is out of range for type '" + - getEnumName(getTypeNum(0)) + "'!"); + if (Val != II->getValue()) { + // If sign-extended doesn't fit, does it fit as unsigned? + unsigne...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...that the value is representable for this type. > if (Size < 32) { > int Val = (II->getValue() << (32-Size)) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > - getEnumName(getTypeNum(0)) + "'!"); > + if (Val != II->getValue()) { > + // If sign-extended doesn't fit, does it fit as unsig...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...e that the value is representable for this type. > if (Size < 32) { > int Val = (II->getValue() << (32-Size)) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > - getEnumName(getTypeNum(0)) + "'!"); > + if (Val != II->getValue()) { > + // If sign-extended doesn't fit, does it fit as unsig...
2012 Oct 17
0
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
...So instead + // we generate a unique name as we go. Luckily, the ARM + // ELF spec says that everything after the '.' is ignored. + StringRef Name = IsData ? "$d" : IsThumb ? "$t" : "$a"; + StringRef UniqueName = Name.str() + "." + itostr(MappingSymbolCounter++); + MCSymbol *Symbol = getContext().GetOrCreateSymbol(UniqueName); + + MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); + MCELF::SetType(SD, ELF::STT_NOTYPE); + MCELF::SetBinding(SD, ELF::STB_LOCAL); + SD.setExternal(false); + Symbol->setSection(...
2011 Oct 12
6
[LLVMdev] Integer to string
Hi, I need to convert an integer into a string. I would normally do that in C++ by using the StringStream class, but the LLVM coding standards discourage using that class. The same coding standards suggest to use llvm:StringStream instead, but I cannot find that class anywhere; furthermore, the header file where it was supposed to be (according to the coding standards) doesn't even exist. Is
2012 Oct 16
2
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Attached is an example of how to reproduce the issue. It uses a C file that happens to has a bunch of switch statements which are encoded as jump tables, giving us data-in-code. Usage: To build object files with clang via the -integrated-as versus via GCC: $ export NDK_DIR=<my_ndk_dir> $ export LLVM_DIR=<my_llvm_bin_dir> $ make To test that the generated objects contain the same