[LLVMdev] LLVM 2.0 and integer signedness

Anton Korobeynikov asl at math.spbu.ru
Tue Jun 26 08:03:26 PDT 2007


Hello, Alberto.

> I'm using llvm for instrumenting code, and I need to know if there's a way to 
> difference between signed and unsigned Values of integer type during an 
> optimization pass.
Types are signless in LLVM 2, operations are not. So, you should
probably inspect insts itself, not their operands.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-dev mailing list