Make some helpers static or move into the llvm namespace.