search for: min_int_bits

Displaying 2 results from an estimated 2 matches for "min_int_bits".

Did you mean: max_int_bits
2015 Jan 22
2
[LLVMdev] access IntegerType::getSignBit from Type *
....getSignBit? If pType isIntegerType, I need to know if it is signed or unsigned... How to achieve this? Thx Alex llvm::Type * getRandomValid_IntegerType(llvm::LLVMContext &C) { using namespace llvm; //--- determine num of bits between allowed bits int rI=randInt(IntegerType::MIN_INT_BITS,IntegerType::MAX_INT_BITS); return IntegerType::get(C, rI); } llvm::Type * pType=getRandomValid_IntegerType(llvm::LLVMContext &C); if(pType.isIntegerTy) { pType->getIntegerBitWidth(); // ok pType->HOWTOGET_SIGN_INFO; //? }
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...eturn LABELSTR; } - + // Otherwise, this wasn't a label. If this was valid as an integer type, // return it. if (IntEnd == 0) IntEnd = CurPtr; if (IntEnd != StartChar) { CurPtr = IntEnd; uint64_t NumBits = atoull(StartChar, CurPtr); - if (NumBits < IntegerType::MIN_INT_BITS || + if (NumBits < IntegerType::MIN_INT_BITS || NumBits > IntegerType::MAX_INT_BITS) { GenerateError("Bitwidth for integer type out of range!"); return YYERROR; @@ -423,7 +425,7 @@ int LLLexer::LexIdentifier() { llvmAsmlval.PrimType = Ty; return...