[opaque pointer type] Add textual IR support for explicit type parameter to the call...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Apr 2015 23:24:18 +0000 (23:24 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 16 Apr 2015 23:24:18 +0000 (23:24 +0000)
See r230786 and r230794 for similar changes to gep and load
respectively.

Call is a bit different because it often doesn't have a single explicit
type - usually the type is deduced from the arguments, and just the
return type is explicit. In those cases there's no need to change the
IR.

When that's not the case, the IR usually contains the pointer type of
the first operand - but since typed pointers are going away, that
representation is insufficient so I'm just stripping the "pointerness"
of the explicit type away.

This does make the IR a bit weird - it /sort of/ reads like the type of
the first operand: "call void () %x(" but %x is actually of type "void
()*" and will eventually be just of type "ptr". But this seems not too
bad and I don't think it would benefit from repeating the type
("void (), void () * %x(" and then eventually "void (), ptr %x(") as has
been done with gep and load.

This also has a side benefit: since the explicit type is no longer a
pointer, there's no ambiguity between an explicit type and a function
that returns a function pointer. Previously this case needed an explicit
type (eg: a function returning a void() function was written as
"call void () () * @x(" rather than "call void () * @x(" because of the
ambiguity between a function returning a pointer to a void() function
and a function returning void).

No ambiguity means even function pointer return types can just be
written alone, without writing the whole function's type.

This leaves /only/ the varargs case where the explicit type is required.

Given the special type syntax in call instructions, the regex-fu used
for migration was a bit more involved in its own unique way (as every
one of these is) so here it is. Use it in conjunction with the apply.sh
script and associated find/xargs commands I've provided in rr230786 to
migrate your out of tree tests. Do let me know if any of this doesn't
cover your cases & we can iterate on a more general script/regexes to
help others with out of tree tests.

About 9 test cases couldn't be automatically migrated - half of those
were functions returning function pointers, where I just had to manually
delete the function argument types now that we didn't need an explicit
function type there. The other half were typedefs of function types used
in calls - just had to manually drop the * from those.

import fileinput
import sys
import re

pat = re.compile(r'((?:=|:|^|\s)call\s(?:[^@]*?))(\s*$|\s*(?:(?:\[\[[a-zA-Z0-9_]+\]\]|[@%](?:(")?[\\\?@a-zA-Z0-9_.]*?(?(3)"|)|{{.*}}))(?:\(|$)|undef|inttoptr|bitcast|null|asm).*$)')
addrspace_end = re.compile(r"addrspace\(\d+\)\s*\*$")
func_end = re.compile("(?:void.*|\)\s*)\*$")

def conv(match, line):
  if not match or re.search(addrspace_end, match.group(1)) or not re.search(func_end, match.group(1)):
    return line
  return line[:match.start()] + match.group(1)[:match.group(1).rfind('*')].rstrip() + match.group(2) + line[match.end():]

for line in sys.stdin:
  sys.stdout.write(conv(re.search(pat, line), line))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235145 91177308-0d34-0410-b5e6-96231b3b80d8

560 files changed:
include/llvm/IR/Instructions.h
lib/AsmParser/LLParser.cpp
lib/IR/AsmWriter.cpp
test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
test/Analysis/BasicAA/2008-04-15-Byval.ll
test/Analysis/BasicAA/byval.ll
test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll
test/Analysis/CallGraph/2008-09-09-DirectCall.ll
test/Analysis/GlobalsModRef/volatile-instrs.ll
test/Analysis/LazyCallGraph/basic.ll
test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll
test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll
test/Analysis/ScalarEvolution/max-trip-count.ll
test/Analysis/ScalarEvolution/zext-signed-addrec.ll
test/Analysis/ValueTracking/memory-dereferenceable.ll
test/Assembler/2002-07-25-ReturnPtrFunction.ll
test/Assembler/2003-05-15-AssemblerProblem.ll
test/Assembler/2008-01-11-VarargAttrs.ll
test/Assembler/musttail-invalid-1.ll
test/Assembler/musttail-invalid-2.ll
test/Assembler/musttail.ll
test/Bitcode/miscInstructions.3.2.ll
test/CodeGen/AArch64/argument-blocks.ll
test/CodeGen/AArch64/arm64-2012-06-06-FPToUI.ll
test/CodeGen/AArch64/arm64-aapcs.ll
test/CodeGen/AArch64/arm64-abi-varargs.ll
test/CodeGen/AArch64/arm64-anyregcc-crash.ll
test/CodeGen/AArch64/arm64-anyregcc.ll
test/CodeGen/AArch64/arm64-fcopysign.ll
test/CodeGen/AArch64/arm64-join-reserved.ll
test/CodeGen/AArch64/arm64-patchpoint-scratch-regs.ll
test/CodeGen/AArch64/arm64-patchpoint-webkit_jscc.ll
test/CodeGen/AArch64/arm64-patchpoint.ll
test/CodeGen/AArch64/arm64-stackmap-nops.ll
test/CodeGen/AArch64/arm64-stackmap.ll
test/CodeGen/AArch64/br-to-eh-lpad.ll
test/CodeGen/AArch64/dag-combine-invaraints.ll
test/CodeGen/AArch64/stackmap-liveness.ll
test/CodeGen/ARM/2007-03-21-JoinIntervalsCrash.ll
test/CodeGen/ARM/2007-04-03-PEIBug.ll
test/CodeGen/ARM/2007-04-03-UndefinedSymbol.ll
test/CodeGen/ARM/2007-05-03-BadPostIndexedLd.ll
test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
test/CodeGen/ARM/2007-05-09-tailmerge-2.ll
test/CodeGen/ARM/2007-05-22-tailmerge-3.ll
test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll
test/CodeGen/ARM/2008-04-10-ScavengerAssert.ll
test/CodeGen/ARM/2009-02-16-SpillerBug.ll
test/CodeGen/ARM/2009-04-08-FREM.ll
test/CodeGen/ARM/2009-05-07-RegAllocLocal.ll
test/CodeGen/ARM/2009-05-11-CodePlacementCrash.ll
test/CodeGen/ARM/2009-06-02-ISelCrash.ll
test/CodeGen/ARM/2009-06-30-RegScavengerAssert.ll
test/CodeGen/ARM/2009-06-30-RegScavengerAssert2.ll
test/CodeGen/ARM/2009-10-27-double-align.ll
test/CodeGen/ARM/2010-05-18-LocalAllocCrash.ll
test/CodeGen/ARM/2010-06-21-LdStMultipleBug.ll
test/CodeGen/ARM/2010-07-26-GlobalMerge.ll
test/CodeGen/ARM/2011-04-15-AndVFlagPeepholeBug.ll
test/CodeGen/ARM/2011-04-15-RegisterCmpPeephole.ll
test/CodeGen/ARM/2011-10-26-ExpandUnalignedLoadCrash.ll
test/CodeGen/ARM/2012-10-04-AAPCS-byval-align8.ll
test/CodeGen/ARM/2012-10-04-FixedFrame-vs-byval.ll
test/CodeGen/ARM/2013-04-21-AAPCS-VA-C.1.cp.ll
test/CodeGen/ARM/aliases.ll
test/CodeGen/ARM/arguments.ll
test/CodeGen/ARM/arm-asm.ll
test/CodeGen/ARM/bx_fold.ll
test/CodeGen/ARM/cache-intrinsic.ll
test/CodeGen/ARM/compare-call.ll
test/CodeGen/ARM/debug-info-branch-folding.ll
test/CodeGen/ARM/debug-info-d16-reg.ll
test/CodeGen/ARM/debug-info-qreg.ll
test/CodeGen/ARM/debug-info-s16-reg.ll
test/CodeGen/ARM/fast-isel-vararg.ll
test/CodeGen/ARM/fcopysign.ll
test/CodeGen/ARM/ghc-tcreturn-lowered.ll
test/CodeGen/ARM/ifcvt6.ll
test/CodeGen/ARM/indirectbr-2.ll
test/CodeGen/ARM/neon-spfp.ll
test/CodeGen/ARM/optselect-regclass.ll
test/CodeGen/ARM/shifter_operand.ll
test/CodeGen/ARM/stack-protector-bmovpcb_call.ll
test/CodeGen/ARM/stm.ll
test/CodeGen/ARM/uint64tof64.ll
test/CodeGen/ARM/vargs.ll
test/CodeGen/ARM/vector-spilling.ll
test/CodeGen/ARM/vfp.ll
test/CodeGen/ARM/weak2.ll
test/CodeGen/BPF/ex1.ll
test/CodeGen/BPF/sanity.ll
test/CodeGen/CPP/2009-05-01-Long-Double.ll
test/CodeGen/Generic/2003-07-06-BadIntCmp.ll
test/CodeGen/Generic/2003-07-07-BadLongConst.ll
test/CodeGen/Generic/2003-07-08-BadCastToBool.ll
test/CodeGen/Generic/2003-07-29-BadConstSbyte.ll
test/CodeGen/Generic/2005-12-01-Crash.ll
test/CodeGen/Generic/2006-05-06-GEP-Cast-Sink-Crash.ll
test/CodeGen/Generic/2008-02-04-Ctlz.ll
test/CodeGen/Generic/2008-02-25-NegateZero.ll
test/CodeGen/Generic/ConstantExprLowering.ll
test/CodeGen/Generic/PBQP.ll
test/CodeGen/Generic/add-with-overflow-128.ll
test/CodeGen/Generic/add-with-overflow-24.ll
test/CodeGen/Generic/add-with-overflow.ll
test/CodeGen/Generic/badarg6.ll
test/CodeGen/Generic/builtin-expect.ll
test/CodeGen/Generic/cast-fp.ll
test/CodeGen/Generic/constindices.ll
test/CodeGen/Generic/hello.ll
test/CodeGen/Generic/negintconst.ll
test/CodeGen/Generic/overloaded-intrinsic-name.ll
test/CodeGen/Generic/print-add.ll
test/CodeGen/Generic/print-arith-fp.ll
test/CodeGen/Generic/print-arith-int.ll
test/CodeGen/Generic/print-int.ll
test/CodeGen/Generic/print-mul-exp.ll
test/CodeGen/Generic/print-mul.ll
test/CodeGen/Generic/print-shift.ll
test/CodeGen/Hexagon/i16_VarArg.ll
test/CodeGen/Hexagon/i1_VarArg.ll
test/CodeGen/Hexagon/i8_VarArg.ll
test/CodeGen/Mips/alloca.ll
test/CodeGen/Mips/analyzebranch.ll
test/CodeGen/Mips/and1.ll
test/CodeGen/Mips/atomicops.ll
test/CodeGen/Mips/cache-intrinsic.ll
test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
test/CodeGen/Mips/cconv/arguments-varargs-small-structs-combinations.ll
test/CodeGen/Mips/cconv/arguments-varargs-small-structs-multiple-args.ll
test/CodeGen/Mips/cfi_offset.ll
test/CodeGen/Mips/eh-return32.ll
test/CodeGen/Mips/eh-return64.ll
test/CodeGen/Mips/fpbr.ll
test/CodeGen/Mips/gprestore.ll
test/CodeGen/Mips/helloworld.ll
test/CodeGen/Mips/hf16call32.ll
test/CodeGen/Mips/hfptrcall.ll
test/CodeGen/Mips/i32k.ll
test/CodeGen/Mips/internalfunc.ll
test/CodeGen/Mips/lb1.ll
test/CodeGen/Mips/lbu1.ll
test/CodeGen/Mips/lh1.ll
test/CodeGen/Mips/lhu1.ll
test/CodeGen/Mips/mbrsize4a.ll
test/CodeGen/Mips/micromips-addiu.ll
test/CodeGen/Mips/micromips-andi.ll
test/CodeGen/Mips/mips16_32_8.ll
test/CodeGen/Mips/mips16ex.ll
test/CodeGen/Mips/neg1.ll
test/CodeGen/Mips/not1.ll
test/CodeGen/Mips/or1.ll
test/CodeGen/Mips/return-vector.ll
test/CodeGen/Mips/sb1.ll
test/CodeGen/Mips/selnek.ll
test/CodeGen/Mips/sh1.ll
test/CodeGen/Mips/sll1.ll
test/CodeGen/Mips/sll2.ll
test/CodeGen/Mips/sra1.ll
test/CodeGen/Mips/sra2.ll
test/CodeGen/Mips/srl1.ll
test/CodeGen/Mips/srl2.ll
test/CodeGen/Mips/stchar.ll
test/CodeGen/Mips/stldst.ll
test/CodeGen/Mips/sub1.ll
test/CodeGen/Mips/sub2.ll
test/CodeGen/Mips/tailcall.ll
test/CodeGen/Mips/xor1.ll
test/CodeGen/NVPTX/symbol-naming.ll
test/CodeGen/PowerPC/2006-10-13-Miscompile.ll
test/CodeGen/PowerPC/2006-10-17-brcc-miscompile.ll
test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll
test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll
test/CodeGen/PowerPC/2007-09-07-LoadStoreIdxForms.ll
test/CodeGen/PowerPC/2007-09-08-unaligned.ll
test/CodeGen/PowerPC/2007-10-21-LocalRegAllocAssert.ll
test/CodeGen/PowerPC/2007-10-21-LocalRegAllocAssert2.ll
test/CodeGen/PowerPC/2008-04-23-CoalescerCrash.ll
test/CodeGen/PowerPC/2008-07-24-PPC64-CCBug.ll
test/CodeGen/PowerPC/2008-09-12-CoalescerBug.ll
test/CodeGen/PowerPC/2010-03-09-indirect-call.ll
test/CodeGen/PowerPC/2011-12-05-NoSpillDupCR.ll
test/CodeGen/PowerPC/2011-12-06-SpillAndRestoreCR.ll
test/CodeGen/PowerPC/and-branch.ll
test/CodeGen/PowerPC/branch-opt.ll
test/CodeGen/PowerPC/cr1eq-no-extra-moves.ll
test/CodeGen/PowerPC/cr1eq.ll
test/CodeGen/PowerPC/cr_spilling.ll
test/CodeGen/PowerPC/ctrloop-sums.ll
test/CodeGen/PowerPC/ppc32-i1-vaarg.ll
test/CodeGen/PowerPC/ppc32-pic-large.ll
test/CodeGen/PowerPC/ppc32-pic.ll
test/CodeGen/PowerPC/ppc64-anyregcc-crash.ll
test/CodeGen/PowerPC/ppc64-anyregcc.ll
test/CodeGen/PowerPC/ppc64-patchpoint.ll
test/CodeGen/PowerPC/ppc64-stackmap-nops.ll
test/CodeGen/PowerPC/ppc64-stackmap.ll
test/CodeGen/PowerPC/ppcf128-3.ll
test/CodeGen/PowerPC/remat-imm.ll
test/CodeGen/PowerPC/resolvefi-basereg.ll
test/CodeGen/PowerPC/s000-alias-misched.ll
test/CodeGen/PowerPC/stack-protector.ll
test/CodeGen/PowerPC/trampoline.ll
test/CodeGen/PowerPC/varargs-struct-float.ll
test/CodeGen/PowerPC/vsx-spill-norwstore.ll
test/CodeGen/SPARC/2008-10-10-InlineAsmRegOperand.ll
test/CodeGen/SPARC/2011-01-11-Call.ll
test/CodeGen/SPARC/2011-01-19-DelaySlot.ll
test/CodeGen/SPARC/64abi.ll
test/CodeGen/SPARC/setjmp.ll
test/CodeGen/SPARC/varargs.ll
test/CodeGen/Thumb/2007-01-31-RegInfoAssert.ll
test/CodeGen/Thumb/2007-05-05-InvalidPushPop.ll
test/CodeGen/Thumb/2011-05-11-DAGLegalizer.ll
test/CodeGen/Thumb/2011-06-16-NoGPRs.ll
test/CodeGen/Thumb/asmprinter-bug.ll
test/CodeGen/Thumb/vargs.ll
test/CodeGen/Thumb2/2009-07-21-ISelBug.ll
test/CodeGen/Thumb2/2009-08-04-CoalescerAssert.ll
test/CodeGen/Thumb2/2009-08-04-CoalescerBug.ll
test/CodeGen/Thumb2/2009-08-04-ScavengerAssert.ll
test/CodeGen/Thumb2/2009-08-21-PostRAKill4.ll
test/CodeGen/Thumb2/2009-12-01-LoopIVUsers.ll
test/CodeGen/Thumb2/2010-06-14-NEONCoalescer.ll
test/CodeGen/Thumb2/2010-08-10-VarSizedAllocaBug.ll
test/CodeGen/Thumb2/large-call.ll
test/CodeGen/Thumb2/thumb2-ifcvt2.ll
test/CodeGen/Thumb2/thumb2-tbb.ll
test/CodeGen/WinEH/cppeh-alloca-sink.ll
test/CodeGen/WinEH/cppeh-catch-all.ll
test/CodeGen/WinEH/cppeh-catch-scalar.ll
test/CodeGen/WinEH/cppeh-catch-unwind.ll
test/CodeGen/WinEH/cppeh-frame-vars.ll
test/CodeGen/WinEH/cppeh-inalloca.ll
test/CodeGen/WinEH/cppeh-min-unwind.ll
test/CodeGen/WinEH/cppeh-multi-catch.ll
test/CodeGen/WinEH/cppeh-nested-1.ll
test/CodeGen/WinEH/cppeh-nested-2.ll
test/CodeGen/WinEH/cppeh-nested-3.ll
test/CodeGen/WinEH/cppeh-nonalloca-frame-values.ll
test/CodeGen/WinEH/cppeh-prepared-catch-reordered.ll
test/CodeGen/WinEH/cppeh-prepared-catch.ll
test/CodeGen/WinEH/cppeh-prepared-cleanups.ll
test/CodeGen/WinEH/seh-catch-all.ll
test/CodeGen/WinEH/seh-inlined-finally.ll
test/CodeGen/WinEH/seh-outlined-finally.ll
test/CodeGen/WinEH/seh-simple.ll
test/CodeGen/X86/2006-10-13-CycleInDAG.ll
test/CodeGen/X86/2006-10-19-SwitchUnnecessaryBranching.ll
test/CodeGen/X86/2006-11-12-CSRetCC.ll
test/CodeGen/X86/2006-12-19-IntelSyntax.ll
test/CodeGen/X86/2007-02-16-BranchFold.ll
test/CodeGen/X86/2007-02-19-LiveIntervalAssert.ll
test/CodeGen/X86/2007-05-05-VecCastExpand.ll
test/CodeGen/X86/2007-05-14-LiveIntervalAssert.ll
test/CodeGen/X86/2007-07-10-StackerAssert.ll
test/CodeGen/X86/2007-10-15-CoalescerCrash.ll
test/CodeGen/X86/2007-11-04-LiveIntervalCrash.ll
test/CodeGen/X86/2008-02-18-TailMergingBug.ll
test/CodeGen/X86/2008-04-09-BranchFolding.ll
test/CodeGen/X86/2008-04-15-LiveVariableBug.ll
test/CodeGen/X86/2008-05-12-tailmerge-5.ll
test/CodeGen/X86/2008-07-16-CoalescerCrash.ll
test/CodeGen/X86/2008-08-06-CmpStride.ll
test/CodeGen/X86/2008-08-31-EH_RETURN64.ll
test/CodeGen/X86/2008-09-09-LinearScanBug.ll
test/CodeGen/X86/2008-09-11-CoalescerBug.ll
test/CodeGen/X86/2008-09-11-CoalescerBug2.ll
test/CodeGen/X86/2008-10-11-CallCrash.ll
test/CodeGen/X86/2008-10-13-CoalescerBug.ll
test/CodeGen/X86/2008-11-06-testb.ll
test/CodeGen/X86/2008-11-29-ULT-Sign.ll
test/CodeGen/X86/2008-12-01-SpillerAssert.ll
test/CodeGen/X86/2008-12-19-EarlyClobberBug.ll
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll
test/CodeGen/X86/2009-03-25-TestBug.ll
test/CodeGen/X86/2009-04-13-2AddrAssert.ll
test/CodeGen/X86/2009-04-14-IllegalRegs.ll
test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll
test/CodeGen/X86/2009-08-23-SubRegReuseUndo.ll
test/CodeGen/X86/2010-02-23-RematImplicitSubreg.ll
test/CodeGen/X86/2010-05-28-Crash.ll
test/CodeGen/X86/2010-06-15-FastAllocEarlyCLobber.ll
test/CodeGen/X86/2010-08-04-MaskedSignedCompare.ll
test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll
test/CodeGen/X86/2011-02-23-UnfoldBug.ll
test/CodeGen/X86/2011-03-02-DAGCombiner.ll
test/CodeGen/X86/2011-09-14-valcoalesce.ll
test/CodeGen/X86/2011-10-12-MachineCSE.ll
test/CodeGen/X86/2012-09-28-CGPBug.ll
test/CodeGen/X86/2012-11-30-misched-dbg.ll
test/CodeGen/X86/2014-08-29-CompactUnwind.ll
test/CodeGen/X86/aliases.ll
test/CodeGen/X86/anyregcc-crash.ll
test/CodeGen/X86/anyregcc.ll
test/CodeGen/X86/avoid-loop-align.ll
test/CodeGen/X86/avx-varargs-x86_64.ll
test/CodeGen/X86/bool-zext.ll
test/CodeGen/X86/brcond.ll
test/CodeGen/X86/byval-align.ll
test/CodeGen/X86/byval6.ll
test/CodeGen/X86/cache-intrinsic.ll
test/CodeGen/X86/cmov.ll
test/CodeGen/X86/cmp.ll
test/CodeGen/X86/coalescer-remat.ll
test/CodeGen/X86/crash.ll
test/CodeGen/X86/dagcombine-and-setcc.ll
test/CodeGen/X86/discontiguous-loops.ll
test/CodeGen/X86/dllimport-x86_64.ll
test/CodeGen/X86/dllimport.ll
test/CodeGen/X86/early-ifcvt.ll
test/CodeGen/X86/extern_weak.ll
test/CodeGen/X86/fast-isel-x86-64.ll
test/CodeGen/X86/fltused.ll
test/CodeGen/X86/fltused_function_pointer.ll
test/CodeGen/X86/fp-stack-O0.ll
test/CodeGen/X86/fp-stack-ret-store.ll
test/CodeGen/X86/frameescape.ll
test/CodeGen/X86/h-registers-3.ll
test/CodeGen/X86/hoist-common.ll
test/CodeGen/X86/invalid-shift-immediate.ll
test/CodeGen/X86/jump_sign.ll
test/CodeGen/X86/licm-nested.ll
test/CodeGen/X86/licm-symbol.ll
test/CodeGen/X86/lsr-normalization.ll
test/CodeGen/X86/machine-cse.ll
test/CodeGen/X86/memcmp.ll
test/CodeGen/X86/misched-code-difference-with-debug.ll
test/CodeGen/X86/mmx-arg-passing-x86-64.ll
test/CodeGen/X86/movtopush.ll
test/CodeGen/X86/musttail-fastcall.ll
test/CodeGen/X86/musttail-varargs.ll
test/CodeGen/X86/or-branch.ll
test/CodeGen/X86/patchpoint-webkit_jscc.ll
test/CodeGen/X86/patchpoint.ll
test/CodeGen/X86/phys-reg-local-regalloc.ll
test/CodeGen/X86/pic.ll
test/CodeGen/X86/pr1489.ll
test/CodeGen/X86/pr18023.ll
test/CodeGen/X86/pr2326.ll
test/CodeGen/X86/pr2656.ll
test/CodeGen/X86/pr2982.ll
test/CodeGen/X86/pr3244.ll
test/CodeGen/X86/pr3250.ll
test/CodeGen/X86/pr3457.ll
test/CodeGen/X86/rd-mod-wr-eflags.ll
test/CodeGen/X86/scalarize-bitcast.ll
test/CodeGen/X86/seh-safe-div.ll
test/CodeGen/X86/sibcall.ll
test/CodeGen/X86/smul-with-overflow.ll
test/CodeGen/X86/sse-varargs.ll
test/CodeGen/X86/stack-protector.ll
test/CodeGen/X86/stackmap-fast-isel.ll
test/CodeGen/X86/stackmap-large-constants.ll
test/CodeGen/X86/stackmap-liveness.ll
test/CodeGen/X86/stackmap-nops.ll
test/CodeGen/X86/stackmap-shadow-optimization.ll
test/CodeGen/X86/stackmap.ll
test/CodeGen/X86/statepoint-allocas.ll
test/CodeGen/X86/statepoint-call-lowering.ll
test/CodeGen/X86/statepoint-forward.ll
test/CodeGen/X86/statepoint-stack-usage.ll
test/CodeGen/X86/statepoint-stackmap-format.ll
test/CodeGen/X86/sub-with-overflow.ll
test/CodeGen/X86/switch-crit-edge-constant.ll
test/CodeGen/X86/switch-or.ll
test/CodeGen/X86/tail-call-win64.ll
test/CodeGen/X86/tailcall-64.ll
test/CodeGen/X86/tailcall-fastisel.ll
test/CodeGen/X86/twoaddr-coalesce.ll
test/CodeGen/X86/umul-with-carry.ll
test/CodeGen/X86/utf16-cfstrings.ll
test/CodeGen/X86/vararg-callee-cleanup.ll
test/CodeGen/X86/vararg_tailcall.ll
test/CodeGen/X86/variadic-node-pic.ll
test/CodeGen/X86/x86-64-asm.ll
test/CodeGen/X86/x86-64-varargs.ll
test/CodeGen/X86/xmulo.ll
test/CodeGen/X86/xor-icmp.ll
test/CodeGen/XCore/llvm-intrinsics.ll
test/DebugInfo/2009-11-10-CurrentFn.ll
test/DebugInfo/Mips/fn-call-line.ll
test/DebugInfo/Sparc/gnu-window-save.ll
test/DebugInfo/SystemZ/variable-loc.ll
test/DebugInfo/X86/block-capture.ll
test/DebugInfo/X86/dbg-value-const-byref.ll
test/DebugInfo/X86/dbg-value-range.ll
test/DebugInfo/X86/formal_parameter.ll
test/DebugInfo/X86/rvalue-ref.ll
test/DebugInfo/X86/subregisters.ll
test/DebugInfo/multiline.ll
test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll
test/ExecutionEngine/MCJIT/2008-06-05-APInt-OverAShr.ll
test/ExecutionEngine/MCJIT/fpbitcast.ll
test/ExecutionEngine/MCJIT/hello2.ll
test/ExecutionEngine/OrcMCJIT/2002-12-16-ArgTest.ll
test/ExecutionEngine/OrcMCJIT/2008-06-05-APInt-OverAShr.ll
test/ExecutionEngine/OrcMCJIT/fpbitcast.ll
test/ExecutionEngine/OrcMCJIT/hello2.ll
test/ExecutionEngine/fma3-jit.ll
test/ExecutionEngine/frem.ll
test/ExecutionEngine/test-interp-vec-loadstore.ll
test/Feature/aliases.ll
test/Feature/attributes.ll
test/Feature/paramattrs.ll
test/Feature/testvarargs.ll
test/Instrumentation/DataFlowSanitizer/abilist.ll
test/Instrumentation/MemorySanitizer/instrumentation-with-call-threshold.ll
test/Instrumentation/MemorySanitizer/msan_basic.ll
test/Integer/2007-01-19-TruncSext.ll
test/LTO/X86/keep-used-puts-during-instcombine.ll
test/LTO/X86/no-undefined-puts-when-implemented.ll
test/Linker/Inputs/basiclink.b.ll
test/MC/ARM/elf-reloc-02.ll
test/MC/ARM/elf-reloc-03.ll
test/MC/X86/stackmap-nops.ll
test/Other/lint.ll
test/Transforms/ArgumentPromotion/variadic.ll
test/Transforms/CodeGenPrepare/statepoint-relocate.ll
test/Transforms/ConstantHoisting/X86/stackmap.ll
test/Transforms/DeadArgElim/2007-10-18-VarargsReturn.ll
test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll
test/Transforms/DeadArgElim/2008-01-16-VarargsParamAttrs.ll
test/Transforms/DeadArgElim/2013-05-17-VarargsAndBlockAddress.ll
test/Transforms/DeadArgElim/dbginfo.ll
test/Transforms/DeadArgElim/dead_vaargs.ll
test/Transforms/DeadArgElim/variadic_safety.ll
test/Transforms/FunctionAttrs/nocapture.ll
test/Transforms/FunctionAttrs/readattrs.ll
test/Transforms/GCOVProfiling/return-block.ll
test/Transforms/GVN/2007-07-31-NoDomInherit.ll
test/Transforms/GVN/2008-02-12-UndefLoad.ll
test/Transforms/GVN/2009-02-17-LoadPRECrash.ll
test/Transforms/GVN/invariant-load.ll
test/Transforms/GVN/pre-basic-add.ll
test/Transforms/GVN/pre-compare.ll
test/Transforms/GVN/rle-must-alias.ll
test/Transforms/GlobalDCE/2003-07-01-SelfReference.ll
test/Transforms/GlobalOpt/2007-11-09-GEP-GEP-Crash.ll
test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
test/Transforms/GlobalOpt/constantexpr-dangle.ll
test/Transforms/IndVarSimplify/2012-07-17-lftr-undef.ll
test/Transforms/IndVarSimplify/eliminate-max.ll
test/Transforms/IndVarSimplify/sink-alloca.ll
test/Transforms/IndVarSimplify/udiv.ll
test/Transforms/Inline/devirtualize-2.ll
test/Transforms/Inline/frameescape.ll
test/Transforms/Inline/inline-musttail-varargs.ll
test/Transforms/Inline/inline_ssp.ll
test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll
test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll
test/Transforms/InstCombine/2007-02-07-PointerCast.ll
test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll
test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll
test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll
test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll
test/Transforms/InstCombine/2008-05-08-StrLenSink.ll
test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll
test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll
test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll
test/Transforms/InstCombine/2010-05-30-memcpy-Struct.ll
test/Transforms/InstCombine/2012-02-13-FCmp.ll
test/Transforms/InstCombine/alloca.ll
test/Transforms/InstCombine/call.ll
test/Transforms/InstCombine/call2.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/debug-line.ll
test/Transforms/InstCombine/err-rep-cold.ll
test/Transforms/InstCombine/fprintf-1.ll
test/Transforms/InstCombine/gc.relocate.ll
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/osx-names.ll
test/Transforms/InstCombine/pr2996.ll
test/Transforms/InstCombine/pr8547.ll
test/Transforms/InstCombine/printf-1.ll
test/Transforms/InstCombine/printf-2.ll
test/Transforms/InstCombine/simplify-libcalls.ll
test/Transforms/InstCombine/sprintf-1.ll
test/Transforms/InstCombine/sqrt.ll
test/Transforms/InstCombine/srem1.ll
test/Transforms/InstCombine/statepoint.ll
test/Transforms/InstCombine/urem-simplify-bug.ll
test/Transforms/InstSimplify/undef.ll
test/Transforms/JumpThreading/2010-08-26-and.ll
test/Transforms/JumpThreading/assume.ll
test/Transforms/JumpThreading/indirectbr.ll
test/Transforms/JumpThreading/thread-loads.ll
test/Transforms/LICM/2011-04-09-RAUW-AST.ll
test/Transforms/LoopInterchange/interchange.ll
test/Transforms/LoopRotate/PhiRename-1.ll
test/Transforms/LoopStrengthReduce/2008-08-13-CmpStride.ll
test/Transforms/LoopStrengthReduce/2008-09-09-Overflow.ll
test/Transforms/LoopStrengthReduce/2009-01-13-nonconstant-stride-outside-loop.ll
test/Transforms/LoopStrengthReduce/2012-07-18-LimitReassociate.ll
test/Transforms/LoopStrengthReduce/X86/2008-08-14-ShadowIV.ll
test/Transforms/LoopStrengthReduce/X86/pr17473.ll
test/Transforms/LoopStrengthReduce/different-type-ivs.ll
test/Transforms/LoopStrengthReduce/pr18165.ll
test/Transforms/LoopUnswitch/2008-06-02-DomInfo.ll
test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll
test/Transforms/LowerExpectIntrinsic/basic.ll
test/Transforms/MemCpyOpt/form-memset.ll
test/Transforms/ObjCARC/basic.ll
test/Transforms/ObjCARC/contract.ll
test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll
test/Transforms/ObjCARC/intrinsic-use-isolated.ll
test/Transforms/ObjCARC/intrinsic-use.ll
test/Transforms/PhaseOrdering/PR6627.ll
test/Transforms/PlaceSafepoints/basic.ll
test/Transforms/Reassociate/looptest.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-1.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-10.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-11.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-2.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-3.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-4.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-5.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-6.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-7.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-8.ll
test/Transforms/RewriteStatepointsForGC/base-pointers-9.ll
test/Transforms/RewriteStatepointsForGC/base-pointers.ll
test/Transforms/RewriteStatepointsForGC/basics.ll
test/Transforms/RewriteStatepointsForGC/live-vector.ll
test/Transforms/RewriteStatepointsForGC/liveness-basics.ll
test/Transforms/RewriteStatepointsForGC/preprocess.ll
test/Transforms/RewriteStatepointsForGC/relocate_invoke_result.ll
test/Transforms/RewriteStatepointsForGC/relocation.ll
test/Transforms/SCCP/2009-05-27-VectorOperandZero.ll
test/Transforms/SCCP/retvalue-undef.ll
test/Transforms/SLPVectorizer/X86/barriercall.ll
test/Transforms/SLPVectorizer/X86/compare-reduce.ll
test/Transforms/SLPVectorizer/X86/cross_block_slp.ll
test/Transforms/SLPVectorizer/X86/in-tree-user.ll
test/Transforms/SLPVectorizer/X86/multi_block.ll
test/Transforms/SLPVectorizer/X86/pr16628.ll
test/Transforms/SampleProfile/branch.ll
test/Transforms/SampleProfile/calls.ll
test/Transforms/SampleProfile/fnptr.ll
test/Transforms/SampleProfile/propagate.ll
test/Transforms/ScalarRepl/inline-vector.ll
test/Transforms/ScalarRepl/only-memcpy-uses.ll
test/Transforms/ScalarRepl/phi-cycle.ll
test/Transforms/SimplifyCFG/2007-12-21-Crash.ll
test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll
test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll
test/Transforms/SimplifyCFG/common-dest-folding.ll
test/Transforms/SimplifyCFG/hoist-dbgvalue.ll
test/Transforms/SimplifyCFG/volatile-phioper.ll
test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll
test/Verifier/2008-01-11-VarargAttrs.ll
test/Verifier/frameescape.ll
test/Verifier/inalloca-vararg.ll
test/Verifier/invalid-statepoint.ll
test/Verifier/invalid-statepoint2.ll
test/Verifier/musttail-invalid.ll
test/Verifier/musttail-valid.ll
test/Verifier/statepoint.ll
test/Verifier/varargs-intrinsic.ll

index e0a368a8d4d93702c4dad670a01b2130bab06e45..1f2ca301d24c2a71c478caca71346aa0626da7fc 100644 (file)
@@ -1337,6 +1337,10 @@ public:
 
   ~CallInst() override;
 
+  Type *getFunctionType() const {
+    return cast<PointerType>(getCalledValue()->getType())->getElementType();
+  }
+
   // Note that 'musttail' implies 'tail'.
   enum TailCallKind { TCK_None = 0, TCK_Tail = 1, TCK_MustTail = 2 };
   TailCallKind getTailCallKind() const {
index 2b306dbd6420008afc3b59baf9c36303d9480de9..546363b9cb132337a5354705ad74cc0696832230 100644 (file)
@@ -5160,10 +5160,8 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
   // If RetType is a non-function pointer type, then this is the short syntax
   // for the call, which means that RetType is just the return type.  Infer the
   // rest of the function argument types from the arguments that are present.
-  PointerType *PFTy = nullptr;
-  FunctionType *Ty = nullptr;
-  if (!(PFTy = dyn_cast<PointerType>(RetType)) ||
-      !(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {
+  FunctionType *Ty = dyn_cast<FunctionType>(RetType);
+  if (!Ty) {
     // Pull out the types of all of the arguments...
     std::vector<Type*> ParamTypes;
     for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
@@ -5173,12 +5171,12 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
       return Error(RetTypeLoc, "Invalid result type for LLVM function");
 
     Ty = FunctionType::get(RetType, ParamTypes, false);
-    PFTy = PointerType::getUnqual(Ty);
   }
 
   // Look up the callee.
   Value *Callee;
-  if (ConvertValIDToValue(PFTy, CalleeID, Callee, &PFS)) return true;
+  if (ConvertValIDToValue(PointerType::getUnqual(Ty), CalleeID, Callee, &PFS))
+    return true;
 
   // Set up the Attribute for the function.
   SmallVector<AttributeSet, 8> Attrs;
index d314727c4ea30ea046c0ac1dc09ab50ea6e03eb0..48737b5796ec52f7c88d861148d22151e9fc55de 100644 (file)
@@ -2781,8 +2781,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     }
 
     Operand = CI->getCalledValue();
-    PointerType *PTy = cast<PointerType>(Operand->getType());
-    FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
+    FunctionType *FTy = cast<FunctionType>(CI->getFunctionType());
     Type *RetTy = FTy->getReturnType();
     const AttributeSet &PAL = CI->getAttributes();
 
@@ -2794,15 +2793,9 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     // and if the return type is not a pointer to a function.
     //
     Out << ' ';
-    if (!FTy->isVarArg() &&
-        (!RetTy->isPointerTy() ||
-         !cast<PointerType>(RetTy)->getElementType()->isFunctionTy())) {
-      TypePrinter.print(RetTy, Out);
-      Out << ' ';
-      writeOperand(Operand, false);
-    } else {
-      writeOperand(Operand, true);
-    }
+    TypePrinter.print(FTy->isVarArg() ? FTy : RetTy, Out);
+    Out << ' ';
+    writeOperand(Operand, false);
     Out << '(';
     for (unsigned op = 0, Eop = CI->getNumArgOperands(); op < Eop; ++op) {
       if (op > 0)
index eb05e1edd75b95252e60c73f6ac40de70376688e..98161bff9273d29e05405d1f9c07132a16ea3ee1 100644 (file)
@@ -26,7 +26,7 @@ no_exit:              ; preds = %no_exit, %entry
 loopexit:              ; preds = %no_exit, %entry
        %Y.0.1 = phi i32 [ 0, %entry ], [ %tmp.13, %no_exit ]           ; <i32> [#uses=1]
        %tmp.4 = getelementptr [3 x [3 x i32]], [3 x [3 x i32]]* %X, i32 0, i32 0               ; <[3 x i32]*> [#uses=1]
-       %tmp.15 = call i32 (...)* @foo( [3 x i32]* %tmp.4, i32 %Y.0.1 )         ; <i32> [#uses=0]
+       %tmp.15 = call i32 (...) @foo( [3 x i32]* %tmp.4, i32 %Y.0.1 )          ; <i32> [#uses=0]
        ret void
 }
 
index 9df12bdd570d608b573d522139ea2f1860246b67..9d4fd14831859f4a2c373ff1b936776ed70de03a 100644 (file)
@@ -10,7 +10,7 @@ entry:
        %tmp = getelementptr %struct.x, %struct.x* %X, i32 0, i32 0             ; <[4 x i32]*> [#uses=1]
        %tmp1 = getelementptr [4 x i32], [4 x i32]* %tmp, i32 0, i32 3          ; <i32*> [#uses=1]
        store i32 2, i32* %tmp1, align 4
-       %tmp2 = call i32 (...)* @bar( %struct.x* byval align 4  %X ) nounwind           ; <i32> [#uses=0]
+       %tmp2 = call i32 (...) @bar( %struct.x* byval align 4  %X ) nounwind            ; <i32> [#uses=0]
        br label %return
 return:                ; preds = %entry
        ret void
index edbe7b33de17cb081be4c9dc6c6bda4cf4c61d25..4f90c3f4d26e9d933a9bcad92b15f279934c7f49 100644 (file)
@@ -6,7 +6,7 @@ target triple = "i686-apple-darwin8"
 
 define i32 @foo(%struct.x* byval  %a) nounwind  {
 ; CHECK: ret i32 1
-  %tmp1 = tail call i32 (...)* @bar( %struct.x* %a ) nounwind          ; <i32> [#uses=0]
+  %tmp1 = tail call i32 (...) @bar( %struct.x* %a ) nounwind           ; <i32> [#uses=0]
   %tmp2 = getelementptr %struct.x, %struct.x* %a, i32 0, i32 0         ; <i32*> [#uses=2]
   store i32 1, i32* %tmp2, align 4
   store i32 2, i32* @g, align 4
index e5e3f64b649b81ce87baa14e8b75a90b7425c490..534c4ad0e94fb019c084491b2fc7f995f0468be9 100644 (file)
@@ -124,7 +124,7 @@ for.inc10:                                        ; preds = %for.end9
 
 for.end12:                                        ; preds = %for.cond
   %6 = load i32, i32* @g, align 4
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %6)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %6)
   store i32 0, i32* @g, align 4
   store i32 0, i32* %i, align 4
   br label %for.cond13
@@ -165,7 +165,7 @@ for.inc22:                                        ; preds = %for.end21
 
 for.end24:                                        ; preds = %for.cond13
   %11 = load i32, i32* @g, align 4
-  %call25 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %11)
+  %call25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %11)
   store i32 0, i32* @g, align 4
   store i32 0, i32* %i, align 4
   br label %for.cond26
@@ -188,7 +188,7 @@ for.inc29:                                        ; preds = %for.body28
 
 for.end31:                                        ; preds = %for.cond26
   %14 = load i32, i32* @g, align 4
-  %call32 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %14)
+  %call32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %14)
   store i32 0, i32* @g, align 4
   %15 = load i32, i32* %retval
   ret i32 %15
index 595cc427c452afe681d2f96521ec4171996a7f00..56eac49c1684a1e276a40a6d1fad92fcc84cd45b 100644 (file)
@@ -12,6 +12,6 @@ entry:
 
 define void @caller() {
 entry:
-       call void (...)* @callee( void (...)* @callee )
+       call void (...) @callee( void (...)* @callee )
        unreachable
 }
index a331bf370c0cb809959d593fde4627ff5e517479..5dd47bca3a080a6d387d1ac3043fa51ec565a0c4 100644 (file)
@@ -25,6 +25,6 @@ main_entry:
   %0 = load volatile i32, i32* getelementptr inbounds (%struct.anon, %struct.anon* @b, i64 0, i32 0), align 4
   store i32 %0, i32* @c, align 4
   tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* bitcast (%struct.anon* @b to i8*), i8* bitcast (%struct.anon* @a to i8*), i64 12, i32 4, i1 false) nounwind
-  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0) nounwind
+  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0) nounwind
   ret i32 0
 }
index 6e2cb905c37b50efbe361524a7944bd1ad6cfe43..7c13d2bef390c2cd97c21d3f2511517658303eef 100644 (file)
@@ -90,7 +90,7 @@ next:
   select i1 true, void ()* @f3, void ()* @f4
   store void ()* @f5, void ()** %x
   call void @f6()
-  call void (void ()*, void ()*)* bitcast (void ()* @f7 to void (void ()*, void ()*)*)(void ()* @f8, void ()* @f9)
+  call void (void ()*, void ()*) bitcast (void ()* @f7 to void (void ()*, void ()*)*)(void ()* @f8, void ()* @f9)
   invoke void @f10() to label %exit unwind label %unwind
 
 exit:
index 46c6c59e92c529bf01ff4fbf2cda9ddd77394668..84561c5c6dc93fc2bfbf5246be006d13c70c4067 100644 (file)
@@ -13,7 +13,7 @@ bb.nph:               ; preds = %entry
 bb:            ; preds = %bb.nph, %bb1
        %indvar = phi i32 [ 0, %bb.nph ], [ %indvar.next, %bb1 ]                ; <i32> [#uses=2]
        %argc_addr.04 = add i32 %indvar, %argc          ; <i32> [#uses=1]
-       tail call void (...)* @Test() nounwind
+       tail call void (...) @Test() nounwind
        %1 = add i32 %argc_addr.04, 1           ; <i32> [#uses=1]
        br label %bb1
 
index c4a4c3006dde53297704aa38ca031129d74b3d7e..33fcbab92910696c454ed8008aa356ae27b44587 100644 (file)
@@ -14,7 +14,7 @@ entry:
   br label %lbl_818
 
 lbl_818:                                          ; preds = %for.end, %entry
-  call void (...)* @func_27()
+  call void (...) @func_27()
   store i32 0, i32* @g_814, align 4
   br label %for.cond
 
index 72560c77a8ef188169a6c5a5d57e7bc5ce354385..614e9b265ab0978d37ebad75596822f4b306a4ba 100644 (file)
@@ -65,7 +65,7 @@ for.inc:                                          ; preds = %for.body
   br label %for.cond
 
 for.end:                                          ; preds = %for.body, %for.cond
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %g_4.0) nounwind ; <i32> [#uses=0]
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %g_4.0) nounwind ; <i32> [#uses=0]
   ret i32 0
 }
 
index 31ebb3e3efef9a2467a00cc86f7a6618c53ff74a..2b12b33158fb01135b081b31d43e2cc5635b8a55 100644 (file)
@@ -63,7 +63,7 @@ for.cond.for.end9_crit_edge:                      ; preds = %for.inc8
 
 for.end9:                                         ; preds = %entry.for.end9_crit_edge, %for.cond.for.end9_crit_edge
   %3 = phi i32 [ %.pre, %entry.for.end9_crit_edge ], [ %shl, %for.cond.for.end9_crit_edge ]
-  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3) #2
+  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3) #2
   br label %return
 
 return.loopexit.split:                            ; preds = %for.cond1.preheader.lr.ph
index 76d302ae4c6fce3df260a9e8171b1472a6c0ad2b..bfee5c78df6f0643bc11dc52d165d252ba8756ab 100644 (file)
@@ -22,7 +22,7 @@ entry:
     %alloca = alloca i1
     %load2 = load i1, i1* %alloca
     %load3 = load i32, i32 addrspace(1)* %dparam
-    %tok = tail call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 addrspace(1)* %dparam)
+    %tok = tail call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 addrspace(1)* %dparam)
     %relocate = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(i32 %tok, i32 4, i32 4)
     %load4 = load i32, i32 addrspace(1)* %relocate
     %nparam = getelementptr i32, i32 addrspace(1)* %dparam, i32 5
index fdee93c1ca70bf5f8fe769e377a8179324974432..0fb9d55faed443a386d65625d8371d5254422cf8 100644 (file)
@@ -7,7 +7,7 @@
 declare void (i32)* @foo()
 
 define void @test() {
-        call void (i32)* ()* @foo( )           ; <%ty*>:1 [#uses=0]
+        call void (i32)* () @foo( )           ; <%ty*>:1 [#uses=0]
         ret void
 }
 
index eba26a2093eee98e05b4b7d5d41071d07fa4c0d5..70c9617ef1c0cbe38b4b15697b07f99be413c802 100644 (file)
@@ -4,12 +4,12 @@
 ; RUN: verify-uselistorder %s
 
 define void @test() {
-        call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
+        call void (...) bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
         ret void
 }
 
 define void @AddString(i16* %tmp.124, i32 %tmp.127) {
-        call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
+        call void (...) bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
         ret void
 }
 
index 0b6592c69424668acb2f46549f84a433586a8e13..3111f2d321657fc0fabf20f8a1b39582b1bb47f5 100644 (file)
@@ -6,6 +6,6 @@
 declare void @foo(...)
 
 define void @bar() {
-       call void (...)* @foo(%struct* byval null )
+       call void (...) @foo(%struct* byval null )
        ret void
 }
index b123a9151d3d4f27280f3e26b58bc4b0a82b0c6a..e9141c813dff675924beb26f0b3ee6faa7a96cd5 100644 (file)
@@ -8,7 +8,7 @@
 declare i8* @f(i8*, ...)
 
 define i8* @f_thunk(i8* %this) {
-  %rv = musttail call i8* (i8*, ...)* @f(i8* %this, ...)
+  %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...)
 ; CHECK: error: unexpected ellipsis in argument list for musttail call in non-varargs function
   ret i8* %rv
 }
index 3bcb51fc48519f7443facf5d2f1e19512b07c92d..8602afd3d2cb7eefa8e6a9f616ed0015705dfa5e 100644 (file)
@@ -7,7 +7,7 @@
 declare i8* @f(i8*, ...)
 
 define i8* @f_thunk(i8* %this, ...) {
-  %rv = musttail call i8* (i8*, ...)* @f(i8* %this)
+  %rv = musttail call i8* (i8*, ...) @f(i8* %this)
 ; CHECK: error: expected '...' at end of argument list for musttail call in varargs function
   ret i8* %rv
 }
index 6e2a9b2ef3279edde172ed43457c780a64ecf457..ac60ba2d02fa52bcb44c33edaf5ea14bfa21904a 100644 (file)
@@ -7,8 +7,8 @@
 declare i8* @f(i8*, ...)
 
 define i8* @f_thunk(i8* %this, ...) {
-  %rv = musttail call i8* (i8*, ...)* @f(i8* %this, ...)
+  %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...)
   ret i8* %rv
 }
 ; CHECK-LABEL: define i8* @f_thunk(i8* %this, ...)
-; CHECK: %rv = musttail call i8* (i8*, ...)* @f(i8* %this, ...)
+; CHECK: %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...)
index 6a077d5c9fa00bb6e454b9bc58383c524ebbd079..bed26c22147db4388c6ef8fdd7f4c425d56c1c3f 100644 (file)
@@ -173,8 +173,8 @@ entry:
 ; CHECK-NEXT: %res2 = tail call i32 @test(i32 %x)
   %res2 = tail call i32 @test(i32 %x)
   
-; CHECK-NEXT: %res3 = call i32 (i8*, ...)* @printf(i8* %msg, i32 12, i8 42)
-  %res3 = call i32 (i8*, ...)* @printf(i8* %msg, i32 12, i8 42)
+; CHECK-NEXT: %res3 = call i32 (i8*, ...) @printf(i8* %msg, i32 12, i8 42)
+  %res3 = call i32 (i8*, ...) @printf(i8* %msg, i32 12, i8 42)
   
   ret void
 }
index f1dcfa67d0eb8e738feefaef7ca94e047f0ec3b9..3169abc2dcb3a7f0e009b16f68ed06f1bc60b7e1 100644 (file)
@@ -64,7 +64,7 @@ define void @test_varargs_stackalign() {
 ; CHECK-LABEL: test_varargs_stackalign:
 ; CHECK-DARWINPCS: stp {{w[0-9]+}}, {{w[0-9]+}}, [sp, #16]
 
-  call void(...)* @callee([3 x float] undef, [2 x float] [float 1.0, float 2.0])
+  call void(...) @callee([3 x float] undef, [2 x float] [float 1.0, float 2.0])
   ret void
 }
 
index 41e22e95f6294c85c71eae6179ad86d9f260ce93..b760261f78810bc8a3e5a44787ee0c10d7de227f 100644 (file)
@@ -16,11 +16,11 @@ entry:
   %0 = load double, double* %d.addr, align 8
   %1 = load double, double* %d.addr, align 8
   %conv = fptoui double %1 to i64
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), double %0, i64 %conv)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), double %0, i64 %conv)
   %2 = load double, double* %d.addr, align 8
   %3 = load double, double* %d.addr, align 8
   %conv1 = fptoui double %3 to i32
-  %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str1, i32 0, i32 0), double %2, i32 %conv1)
+  %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str1, i32 0, i32 0), double %2, i32 %conv1)
   ret void
 }
 
@@ -37,12 +37,12 @@ entry:
   %conv = fpext float %0 to double
   %1 = load float, float* %f.addr, align 4
   %conv1 = fptoui float %1 to i64
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str2, i32 0, i32 0), double %conv, i64 %conv1)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str2, i32 0, i32 0), double %conv, i64 %conv1)
   %2 = load float, float* %f.addr, align 4
   %conv2 = fpext float %2 to double
   %3 = load float, float* %f.addr, align 4
   %conv3 = fptoui float %3 to i32
-  %call4 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str3, i32 0, i32 0), double %conv2, i32 %conv3)
+  %call4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str3, i32 0, i32 0), double %conv2, i32 %conv3)
   ret void
 }
 
index 41c3ad5766c3dabcdc49e42b6dc0609e422a0292..390a3c75ff8359d1115eb784b506a0438cd59383 100644 (file)
@@ -78,7 +78,7 @@ declare void @variadic(i32 %a, ...)
   ; Under AAPCS variadic functions have the same calling convention as
   ; others. The extra arguments should go in registers rather than on the stack.
 define void @test_variadic() {
-  call void(i32, ...)* @variadic(i32 0, i64 1, double 2.0)
+  call void(i32, ...) @variadic(i32 0, i64 1, double 2.0)
 ; CHECK: fmov d0, #2.0
 ; CHECK: orr w1, wzr, #0x1
 ; CHECK: bl variadic
index f95fec6615838ef54ead2a9647ef961120760161..03414b56144c09d3964e12ec35fe9f3e97b12777 100644 (file)
@@ -94,7 +94,7 @@ define i32 @main() nounwind ssp {
   %10 = load i32, i32* %a10, align 4
   %11 = load i32, i32* %a11, align 4
   %12 = load i32, i32* %a12, align 4
-  call void (i32, i32, i32, i32, i32, i32, i32, i32, i32, ...)* @fn9(i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12)
+  call void (i32, i32, i32, i32, i32, i32, i32, i32, i32, ...) @fn9(i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12)
   ret i32 0
 }
 
@@ -133,7 +133,7 @@ entry:
   store <4 x i32> %y, <4 x i32>* %y.addr, align 16
   %0 = load i32, i32* %x.addr, align 4
   %1 = load <4 x i32>, <4 x i32>* %y.addr, align 16
-  call void (i8*, ...)* @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %0, <4 x i32> %1)
+  call void (i8*, ...) @foo(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %0, <4 x i32> %1)
   ret void
 }
 
@@ -186,6 +186,6 @@ entry:
   %1 = load i32, i32* %x.addr, align 4
   %2 = bitcast %struct.s41* %s41 to i128*
   %3 = load i128, i128* %2, align 1
-  call void (i8*, ...)* @foo2(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %1, i128 %3)
+  call void (i8*, ...) @foo2(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %1, i128 %3)
   ret void
 }
index 241cf974c05b7e23637d63b84836518396688243..56c62d5fe7db58ca44c77c747bdeabccc81e88c7 100644 (file)
@@ -8,7 +8,7 @@ define i64 @anyreglimit(i64 %v1, i64 %v2, i64 %v3, i64 %v4, i64 %v5, i64 %v6, i6
                         i64 %v17, i64 %v18, i64 %v19, i64 %v20, i64 %v21, i64 %v22, i64 %v23, i64 %v24,
                         i64 %v25, i64 %v26, i64 %v27, i64 %v28, i64 %v29, i64 %v30, i64 %v31, i64 %v32) {
 entry:
-  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 12, i32 15, i8* inttoptr (i64 0 to i8*), i32 32,
+  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 12, i32 15, i8* inttoptr (i64 0 to i8*), i32 32,
                 i64 %v1, i64 %v2, i64 %v3, i64 %v4, i64 %v5, i64 %v6, i64 %v7, i64 %v8,
                 i64 %v9, i64 %v10, i64 %v11, i64 %v12, i64 %v13, i64 %v14, i64 %v15, i64 %v16,
                 i64 %v17, i64 %v18, i64 %v19, i64 %v20, i64 %v21, i64 %v22, i64 %v23, i64 %v24,
index e26875d52f99f12211e992353f76dd317ec7702b..2a2f45196046544e0d0837ce4ee585c59413ee9f 100644 (file)
@@ -55,7 +55,7 @@
 ; CHECK-NEXT:   .long 3
 define i64 @test() nounwind ssp uwtable {
 entry:
-  call anyregcc void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 0, i32 16, i8* null, i32 2, i32 1, i32 2, i64 3)
+  call anyregcc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 0, i32 16, i8* null, i32 2, i32 1, i32 2, i64 3)
   ret i64 0
 }
 
@@ -77,7 +77,7 @@ entry:
 define i64 @property_access1(i8* %obj) nounwind ssp uwtable {
 entry:
   %f = inttoptr i64 281474417671919 to i8*
-  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 1, i32 20, i8* %f, i32 1, i8* %obj)
+  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 1, i32 20, i8* %f, i32 1, i8* %obj)
   ret i64 %ret
 }
 
@@ -100,7 +100,7 @@ define i64 @property_access2() nounwind ssp uwtable {
 entry:
   %obj = alloca i64, align 8
   %f = inttoptr i64 281474417671919 to i8*
-  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 2, i32 20, i8* %f, i32 1, i64* %obj)
+  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 2, i32 20, i8* %f, i32 1, i64* %obj)
   ret i64 %ret
 }
 
@@ -123,7 +123,7 @@ define i64 @property_access3() nounwind ssp uwtable {
 entry:
   %obj = alloca i64, align 8
   %f = inttoptr i64 281474417671919 to i8*
-  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 3, i32 20, i8* %f, i32 0, i64* %obj)
+  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 3, i32 20, i8* %f, i32 0, i64* %obj)
   ret i64 %ret
 }
 
@@ -205,7 +205,7 @@ entry:
 define i64 @anyreg_test1(i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13) nounwind ssp uwtable {
 entry:
   %f = inttoptr i64 281474417671919 to i8*
-  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 4, i32 20, i8* %f, i32 13, i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13)
+  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 4, i32 20, i8* %f, i32 13, i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13)
   ret i64 %ret
 }
 
@@ -287,7 +287,7 @@ entry:
 define i64 @anyreg_test2(i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13) nounwind ssp uwtable {
 entry:
   %f = inttoptr i64 281474417671919 to i8*
-  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %f, i32 8, i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13)
+  %ret = call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %f, i32 8, i8* %a1, i8* %a2, i8* %a3, i8* %a4, i8* %a5, i8* %a6, i8* %a7, i8* %a8, i8* %a9, i8* %a10, i8* %a11, i8* %a12, i8* %a13)
   ret i64 %ret
 }
 
@@ -315,7 +315,7 @@ entry:
 ; CHECK-NEXT: .long  0
 define i64 @patchpoint_spilldef(i64 %p1, i64 %p2, i64 %p3, i64 %p4) {
 entry:
-  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 12, i32 16, i8* inttoptr (i64 0 to i8*), i32 2, i64 %p1, i64 %p2)
+  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 12, i32 16, i8* inttoptr (i64 0 to i8*), i32 2, i64 %p1, i64 %p2)
   tail call void asm sideeffect "nop", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x16},~{x17},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{x29},~{x30},~{x31}"() nounwind
   ret i64 %result
 }
@@ -355,7 +355,7 @@ entry:
 define i64 @patchpoint_spillargs(i64 %p1, i64 %p2, i64 %p3, i64 %p4) {
 entry:
   tail call void asm sideeffect "nop", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x16},~{x17},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{x29},~{x30},~{x31}"() nounwind
-  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 13, i32 16, i8* inttoptr (i64 0 to i8*), i32 2, i64 %p1, i64 %p2, i64 %p3, i64 %p4)
+  %result = tail call anyregcc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 13, i32 16, i8* inttoptr (i64 0 to i8*), i32 2, i64 %p1, i64 %p2, i64 %p3, i64 %p4)
   ret i64 %result
 }
 
index 66241df9444c7c90b8c84b1fa9fe80cb91bdcbd2..feffd41f002a2290325ba2daf88e86dcca5db137 100644 (file)
@@ -39,7 +39,7 @@ entry:
 ; CHECK: fcvt s0, d0
 ; CHECK: movi.4s v[[CONST:[0-9]+]], #0x80, lsl #24
 ; CHECK: bit.16b v{{[0-9]+}}, v0, v[[CONST]]
-  %0 = tail call double (...)* @bar() nounwind
+  %0 = tail call double (...) @bar() nounwind
   %1 = fptrunc double %0 to float
   %2 = tail call float @copysignf(float 5.000000e-01, float %1) nounwind readnone
   %3 = fadd float %1, %2
index e99168b5eba3fdf7ea4cdc4cb55198a53e3b03a8..dee0344835419544517b2015d2a2a721148910b9 100644 (file)
@@ -10,7 +10,7 @@ target triple = "arm64-apple-macosx10"
 ; CHECK: ret
 define void @g() nounwind ssp {
 entry:
-  tail call void (i32, ...)* @f(i32 0, i32 0) nounwind
+  tail call void (i32, ...) @f(i32 0, i32 0) nounwind
   ret void
 }
 
index 5a740d83df3e768860d349c4351c0c496a243bb6..2651f119412bd05ab415ceea97c4fde569efd65f 100644 (file)
@@ -9,7 +9,7 @@
 define void @clobberScratch(i32* %p) {
   %v = load i32, i32* %p
   tail call void asm sideeffect "nop", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{x29},~{x30},~{x31}"() nounwind
-  tail call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 5, i32 20, i8* null, i32 0, i32* %p, i32 %v)
+  tail call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 5, i32 20, i8* null, i32 0, i32* %p, i32 %v)
   store i32 %v, i32* %p
   ret void
 }
index 8f79f80ba33d63dd8cd4a9f8825815410f511d7f..b8236c5b2479566daf768e578fb4845f77a67403 100644 (file)
@@ -23,9 +23,9 @@ entry:
 ; FAST-NEXT:   movk  x16, #0xbeef
 ; FAST-NEXT:   blr x16
   %resolveCall2 = inttoptr i64 281474417671919 to i8*
-  %result = tail call webkit_jscc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %resolveCall2, i32 2, i64 %p4, i64 %p2)
+  %result = tail call webkit_jscc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %resolveCall2, i32 2, i64 %p4, i64 %p2)
   %resolveCall3 = inttoptr i64 244837814038255 to i8*
-  tail call webkit_jscc void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 6, i32 20, i8* %resolveCall3, i32 2, i64 %p4, i64 %result)
+  tail call webkit_jscc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 6, i32 20, i8* %resolveCall3, i32 2, i64 %p4, i64 %result)
   ret void
 }
 
@@ -59,7 +59,7 @@ entry:
 ; FAST-NEXT:   movk  x16, #0xbeef
 ; FAST-NEXT:   blr x16
   %call = inttoptr i64 281474417671919 to i8*
-  %result = call webkit_jscc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 7, i32 20, i8* %call, i32 6, i64 %callee, i64 2, i64 undef, i32 4, i32 undef, i64 6)
+  %result = call webkit_jscc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 7, i32 20, i8* %call, i32 6, i64 %callee, i64 2, i64 undef, i32 4, i32 undef, i64 6)
   ret i64 %result
 }
 
@@ -101,7 +101,7 @@ entry:
 ; FAST-NEXT:   movk  x16, #0xbeef
 ; FAST-NEXT:   blr x16
   %call = inttoptr i64 281474417671919 to i8*
-  %result = call webkit_jscc i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 7, i32 20, i8* %call, i32 10, i64 %callee, i64 2, i64 undef, i32 4, i32 undef, i64 6, i32 undef, i32 8, i32 undef, i64 10)
+  %result = call webkit_jscc i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 7, i32 20, i8* %call, i32 10, i64 %callee, i64 2, i64 undef, i32 4, i32 undef, i64 6, i32 undef, i32 8, i32 undef, i64 10)
   ret i64 %result
 }
 
index cf066532a62ab1b1dcddaa1728300b3ad2b89295..d9ec7e50ff80538f66497ac9e2e33398f586bb71 100644 (file)
@@ -16,9 +16,9 @@ entry:
 ; CHECK-NEXT:  blr  x16
 ; CHECK:       ret
   %resolveCall2 = inttoptr i64 244837814094590 to i8*
-  %result = tail call i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 2, i32 20, i8* %resolveCall2, i32 4, i64 %p1, i64 %p2, i64 %p3, i64 %p4)
+  %result = tail call i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 2, i32 20, i8* %resolveCall2, i32 4, i64 %p1, i64 %p2, i64 %p3, i64 %p4)
   %resolveCall3 = inttoptr i64 244837814094591 to i8*
-  tail call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 3, i32 20, i8* %resolveCall3, i32 2, i64 %p1, i64 %result)
+  tail call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 3, i32 20, i8* %resolveCall3, i32 2, i64 %p1, i64 %result)
   ret i64 %result
 }
 
@@ -38,7 +38,7 @@ entry:
   store i64 11, i64* %metadata
   store i64 12, i64* %metadata
   store i64 13, i64* %metadata
-  call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 4, i32 0, i64* %metadata)
+  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 4, i32 0, i64* %metadata)
   ret void
 }
 
@@ -51,14 +51,14 @@ entry:
   %tmp80 = add i64 %tmp79, -16
   %tmp81 = inttoptr i64 %tmp80 to i64*
   %tmp82 = load i64, i64* %tmp81, align 8
-  tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 14, i32 8, i64 %arg, i64 %tmp2, i64 %tmp10, i64 %tmp82)
-  tail call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 15, i32 32, i8* null, i32 3, i64 %arg, i64 %tmp10, i64 %tmp82)
+  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 14, i32 8, i64 %arg, i64 %tmp2, i64 %tmp10, i64 %tmp82)
+  tail call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 15, i32 32, i8* null, i32 3, i64 %arg, i64 %tmp10, i64 %tmp82)
   %tmp83 = load i64, i64* %tmp33, align 8
   %tmp84 = add i64 %tmp83, -24
   %tmp85 = inttoptr i64 %tmp84 to i64*
   %tmp86 = load i64, i64* %tmp85, align 8
-  tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 17, i32 8, i64 %arg, i64 %tmp10, i64 %tmp86)
-  tail call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 18, i32 32, i8* null, i32 3, i64 %arg, i64 %tmp10, i64 %tmp86)
+  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 17, i32 8, i64 %arg, i64 %tmp10, i64 %tmp86)
+  tail call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 18, i32 32, i8* null, i32 3, i64 %arg, i64 %tmp10, i64 %tmp86)
   ret i64 10
 }
 
@@ -74,7 +74,7 @@ entry:
 ; CHECK-NEXT: nop
 ; CHECK-NEXT: ldp
 ; CHECK-NEXT: ret
-  %result = tail call i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* null, i32 2, i64 %p1, i64 %p2)
+  %result = tail call i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* null, i32 2, i64 %p1, i64 %p2)
   ret void
 }
 
index 5915b64edf0a808fafe483a49f5088e01f0c7c16..2647ac44296908abbfb990ab35af97f4fb3f95c8 100644 (file)
@@ -8,7 +8,7 @@ entry:
 ; CHECK:      nop
 ; CHECK-NEXT: nop
 ; CHECK-NOT:  nop
-  tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64  0, i32  16)
+  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64  0, i32  16)
   ret void
 }
 
index 29e44846035781032afd34f0d72597a29187fdd9..1a4df7a6f2d6823bfb281b007cce0008b170cb05 100644 (file)
@@ -78,7 +78,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 define void @constantargs() {
 entry:
   %0 = inttoptr i64 244837814094590 to i8*
-  tail call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 1, i32 20, i8* %0, i32 0, i64 65535, i64 65536, i64 4294967295, i64 4294967296)
+  tail call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 1, i32 20, i8* %0, i32 0, i64 65535, i64 65536, i64 4294967295, i64 4294967296)
   ret void
 }
 
@@ -100,7 +100,7 @@ entry:
   ; Runtime void->void call.
   call void inttoptr (i64 244837814094590 to void ()*)()
   ; Followed by inline OSR patchpoint with 12-byte shadow and 2 live vars.
-  call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 3, i32 12, i64 %a, i64 %b)
+  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 3, i32 12, i64 %a, i64 %b)
   ret void
 }
 
@@ -126,7 +126,7 @@ entry:
 cold:
   ; OSR patchpoint with 12-byte nop-slide and 2 live vars.
   %thunk = inttoptr i64 244837814094590 to i8*
-  call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 4, i32 20, i8* %thunk, i32 0, i64 %a, i64 %b)
+  call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 4, i32 20, i8* %thunk, i32 0, i64 %a, i64 %b)
   unreachable
 ret:
   ret void
@@ -142,7 +142,7 @@ ret:
 define i64 @propertyRead(i64* %obj) {
 entry:
   %resolveRead = inttoptr i64 244837814094590 to i8*
-  %result = call i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %resolveRead, i32 1, i64* %obj)
+  %result = call i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 20, i8* %resolveRead, i32 1, i64* %obj)
   %add = add i64 %result, 3
   ret i64 %add
 }
@@ -162,7 +162,7 @@ entry:
 define void @propertyWrite(i64 %dummy1, i64* %obj, i64 %dummy2, i64 %a) {
 entry:
   %resolveWrite = inttoptr i64 244837814094590 to i8*
-  call anyregcc void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 6, i32 20, i8* %resolveWrite, i32 2, i64* %obj, i64 %a)
+  call anyregcc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 6, i32 20, i8* %resolveWrite, i32 2, i64* %obj, i64 %a)
   ret void
 }
 
@@ -184,7 +184,7 @@ entry:
 define void @jsVoidCall(i64 %dummy1, i64* %obj, i64 %arg, i64 %l1, i64 %l2) {
 entry:
   %resolveCall = inttoptr i64 244837814094590 to i8*
-  call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 7, i32 20, i8* %resolveCall, i32 2, i64* %obj, i64 %arg, i64 %l1, i64 %l2)
+  call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 7, i32 20, i8* %resolveCall, i32 2, i64* %obj, i64 %arg, i64 %l1, i64 %l2)
   ret void
 }
 
@@ -206,7 +206,7 @@ entry:
 define i64 @jsIntCall(i64 %dummy1, i64* %obj, i64 %arg, i64 %l1, i64 %l2) {
 entry:
   %resolveCall = inttoptr i64 244837814094590 to i8*
-  %result = call i64 (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.i64(i64 8, i32 20, i8* %resolveCall, i32 2, i64* %obj, i64 %arg, i64 %l1, i64 %l2)
+  %result = call i64 (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.i64(i64 8, i32 20, i8* %resolveCall, i32 2, i64* %obj, i64 %arg, i64 %l1, i64 %l2)
   %add = add i64 %result, 3
   ret i64 %add
 }
@@ -226,7 +226,7 @@ entry:
 ; CHECK-NEXT:   .short 29
 define void @spilledValue(i64 %arg0, i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27) {
 entry:
-  call void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 11, i32 20, i8* null, i32 5, i64 %arg0, i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27)
+  call void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 11, i32 20, i8* null, i32 5, i64 %arg0, i64 %arg1, i64 %arg2, i64 %arg3, i64 %arg4, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27)
   ret void
 }
 
@@ -245,7 +245,7 @@ entry:
 ; CHECK-NEXT:   .short 29
 define webkit_jscc void @spilledStackMapValue(i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27, i64 %l28, i64 %l29) {
 entry:
-  call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 12, i32 16, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27, i64 %l28, i64 %l29)
+  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 12, i32 16, i64 %l0, i64 %l1, i64 %l2, i64 %l3, i64 %l4, i64 %l5, i64 %l6, i64 %l7, i64 %l8, i64 %l9, i64 %l10, i64 %l11, i64 %l12, i64 %l13, i64 %l14, i64 %l15, i64 %l16, i64 %l17, i64 %l18, i64 %l19, i64 %l20, i64 %l21, i64 %l22, i64 %l23, i64 %l24, i64 %l25, i64 %l26, i64 %l27, i64 %l28, i64 %l29)
   ret void
 }
 
@@ -263,7 +263,7 @@ entry:
 ; CHECK-NEXT:   .long   33
 
 define void @liveConstant() {
-  tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 15, i32 8, i32 33)
+  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 15, i32 8, i32 33)
   ret void
 }
 
@@ -280,7 +280,7 @@ define void @liveConstant() {
 ; CHECK-NEXT:   .long   -{{[0-9]+}}
 define void @clobberLR(i32 %a) {
   tail call void asm sideeffect "nop", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x16},~{x17},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{x29},~{x31}"() nounwind
-  tail call void (i64, i32, ...)* @llvm.experimental.stackmap(i64 16, i32 8, i32 %a)
+  tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 16, i32 8, i32 %a)
   ret void
 }
 
index e948b87a63d31353f3269fc2b391a5a86fdb4b2e..f304ba4ca286b141c8247163698da74f5e75284a 100644 (file)
@@ -30,12 +30,12 @@ invoke.cont7:
   unreachable
 
 if.end50.thread:
-  tail call void (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 125)
-  tail call void (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 128)
+  tail call void (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 125)
+  tail call void (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 128)
   unreachable
 
 invoke.cont33:
-  tail call void (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 119)
+  tail call void (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 119)
   unreachable
 
 invoke.cont41:
@@ -51,7 +51,7 @@ lpad40:
   br label %finally.catchall
 
 finally.catchall:
-  tail call void (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 125)
+  tail call void (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str1, i64 0, i64 0), i32 125)
   unreachable
 }
 
index 36141331633840b8b00a1593282662fa9056326a..ac2d057ff3c97dc0928ebe0635152f0acb985161 100644 (file)
@@ -20,7 +20,7 @@ main_:
   %DHSelect = select i1 %tmp8, i32 %tmp9, i32 %tmp10
   store i32 %DHSelect, i32* %i32X, align 4
   %tmp15 = load i32, i32* %i32X, align 4
-  %tmp17 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str2, i32 0, i32 0), i32 %tmp15)
+  %tmp17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str2, i32 0, i32 0), i32 %tmp15)
   ret i32 0
 
 ; CHECK: main:
index 91dcbb20cd88bd0f1e4dc48c20e64e709abcc8ba..6b37aac16f9ee5f1435077a232dc19bf1c5fd7c6 100644 (file)
@@ -39,7 +39,7 @@ define i64 @stackmap_liveness(i1 %c) {
 ; Align
 ; CHECK-NEXT:   .align  3
   %1 = select i1 %c, i64 1, i64 2
-  call anyregcc void (i64, i32, i8*, i32, ...)* @llvm.experimental.patchpoint.void(i64 1, i32 32, i8* null, i32 0)
+  call anyregcc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 1, i32 32, i8* null, i32 0)
   ret i64 %1
 }
 
index 0162d7f55cee5ff2a59a1a074b49d074f14d92b1..7c425961958ca688f13b8cc627e5b5a51eb29824 100644 (file)
@@ -83,7 +83,7 @@ cond_next881:         ; preds = %bb866
        %tmp884885 = inttoptr i64 %tmp10959 to %struct.tree_identifier*         ; <%struct.tree_identifier*> [#uses=1]
        %tmp887 = getelementptr %struct.tree_identifier, %struct.tree_identifier* %tmp884885, i32 0, i32 1, i32 0               ; <i8**> [#uses=1]
        %tmp888 = load i8*, i8** %tmp887                ; <i8*> [#uses=1]
-       tail call void (i32, ...)* @error( i32 undef, i8* %tmp888 )
+       tail call void (i32, ...) @error( i32 undef, i8* %tmp888 )
        ret void
 
 cond_true918:          ; preds = %cond_false841
index cf5094fb3800d217246cfabdfe8ba63109703773..87863bd3ec15d687131ca5d5601dab1b42f93ed6 100644 (file)
@@ -5,7 +5,7 @@ entry:
        %A = alloca [1123 x i32], align 16              ; <[1123 x i32]*> [#uses=1]
        %B = alloca [3123 x i32], align 16              ; <[3123 x i32]*> [#uses=1]
        %C = alloca [12312 x i32], align 16             ; <[12312 x i32]*> [#uses=1]
-       %tmp = call i32 (...)* @bar( [3123 x i32]* %B, [1123 x i32]* %A, [12312 x i32]* %C )            ; <i32> [#uses=0]
+       %tmp = call i32 (...) @bar( [3123 x i32]* %B, [1123 x i32]* %A, [12312 x i32]* %C )             ; <i32> [#uses=0]
        ret i32 undef
 }
 
index b687029d62ae630cce6dd15822b89165e9e27ee3..11f3003e05b56340fe8f73f195f2c57c38af9942 100644 (file)
@@ -10,7 +10,7 @@ define internal void @_ZN1B1iEv(%struct.B* %this) {
 entry:
        %tmp1 = getelementptr %struct.B, %struct.B* %this, i32 0, i32 0         ; <i32*> [#uses=1]
        %tmp2 = load i32, i32* %tmp1            ; <i32> [#uses=1]
-       %tmp4 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8], [7 x i8]* @str, i32 0, i32 0), i32 %tmp2 )              ; <i32> [#uses=0]
+       %tmp4 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([7 x i8], [7 x i8]* @str, i32 0, i32 0), i32 %tmp2 )               ; <i32> [#uses=0]
        ret void
 }
 
@@ -20,7 +20,7 @@ define internal void @_ZN1B1jEv(%struct.B* %this) {
 entry:
        %tmp1 = getelementptr %struct.B, %struct.B* %this, i32 0, i32 0         ; <i32*> [#uses=1]
        %tmp2 = load i32, i32* %tmp1            ; <i32> [#uses=1]
-       %tmp4 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8], [7 x i8]* @str1, i32 0, i32 0), i32 %tmp2 )             ; <i32> [#uses=0]
+       %tmp4 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([7 x i8], [7 x i8]* @str1, i32 0, i32 0), i32 %tmp2 )              ; <i32> [#uses=0]
        ret void
 }
 
index ca168b68ab0812709263b793ea785bd700a453ef..50573b457c377574cf5631bb58b208dad0a497b3 100644 (file)
@@ -93,7 +93,7 @@ cond_true1272:                ; preds = %cond_next1267
        %tmp42.i348 = sub i32 0, %tmp2930.i             ; <i32> [#uses=1]
        %tmp45.i = getelementptr %struct.TestObj, %struct.TestObj* %tmp1273, i32 0, i32 0               ; <i8**> [#uses=2]
        %tmp48.i = load i8*, i8** %tmp45.i              ; <i8*> [#uses=1]
-       %tmp50.i350 = call i32 (i8*, i8*, ...)* @sprintf( i8* getelementptr ([256 x i8], [256 x i8]* @Msg, i32 0, i32 0), i8* getelementptr ([48 x i8], [48 x i8]* @.str53615, i32 0, i32 0), i8* null, i8** %tmp45.i, i8* %tmp48.i )           ; <i32> [#uses=0]
+       %tmp50.i350 = call i32 (i8*, i8*, ...) @sprintf( i8* getelementptr ([256 x i8], [256 x i8]* @Msg, i32 0, i32 0), i8* getelementptr ([48 x i8], [48 x i8]* @.str53615, i32 0, i32 0), i8* null, i8** %tmp45.i, i8* %tmp48.i )            ; <i32> [#uses=0]
        br i1 false, label %cond_true.i632.i, label %Ut_TraceMsg.exit648.i
 
 cond_true.i632.i:              ; preds = %cond_true1272
index 5895a3263e378a2fb945ddeb5bc5b564d962b9d2..f49c805469a04aa19ed0a66f3e123119307162d3 100644 (file)
@@ -24,13 +24,13 @@ entry:
        br i1 %toBool, label %cond_true, label %cond_false
 
 cond_true:             ; preds = %entry
-       %tmp3 = call i32 (...)* @bar( )         ; <i32> [#uses=0]
-       %tmp4 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp3 = call i32 (...) @bar( )          ; <i32> [#uses=0]
+       %tmp4 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        br label %cond_next
 
 cond_false:            ; preds = %entry
-       %tmp5 = call i32 (...)* @foo( )         ; <i32> [#uses=0]
-       %tmp6 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp5 = call i32 (...) @foo( )          ; <i32> [#uses=0]
+       %tmp6 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        br label %cond_next
 
 cond_next:             ; preds = %cond_false, %cond_true
@@ -41,17 +41,17 @@ cond_next:          ; preds = %cond_false, %cond_true
        br i1 %toBool10, label %cond_true11, label %cond_false15
 
 cond_true11:           ; preds = %cond_next
-       %tmp13 = call i32 (...)* @foo( )                ; <i32> [#uses=0]
-       %tmp14 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp13 = call i32 (...) @foo( )         ; <i32> [#uses=0]
+       %tmp14 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_false15:          ; preds = %cond_next
-       %tmp16 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
-       %tmp17 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp16 = call i32 (...) @bar( )         ; <i32> [#uses=0]
+       %tmp17 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_next18:           ; preds = %cond_false15, %cond_true11
-       %tmp19 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
+       %tmp19 = call i32 (...) @bar( )         ; <i32> [#uses=0]
        br label %return
 
 return:                ; preds = %cond_next18
index abb6a33f60139c8577c6c6ad40d39f904f0c3aae..421d501a2ca9ac5ad89fe600553646714badf488 100644 (file)
@@ -26,8 +26,8 @@ entry:
        br i1 %toBool, label %cond_true, label %cond_false
 
 cond_true:             ; preds = %entry
-       %tmp3 = call i32 (...)* @bar( )         ; <i32> [#uses=0]
-       %tmp4 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp3 = call i32 (...) @bar( )          ; <i32> [#uses=0]
+       %tmp4 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        %tmp7 = load i32, i32* %q_addr          ; <i32> [#uses=1]
        %tmp8 = icmp ne i32 %tmp7, 0            ; <i1> [#uses=1]
        %tmp89 = zext i1 %tmp8 to i8            ; <i8> [#uses=1]
@@ -35,8 +35,8 @@ cond_true:            ; preds = %entry
        br i1 %toBool10, label %cond_true11, label %cond_false15
 
 cond_false:            ; preds = %entry
-       %tmp5 = call i32 (...)* @foo( )         ; <i32> [#uses=0]
-       %tmp6 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp5 = call i32 (...) @foo( )          ; <i32> [#uses=0]
+       %tmp6 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        %tmp27 = load i32, i32* %q_addr         ; <i32> [#uses=1]
        %tmp28 = icmp ne i32 %tmp27, 0          ; <i1> [#uses=1]
        %tmp289 = zext i1 %tmp28 to i8          ; <i8> [#uses=1]
@@ -44,17 +44,17 @@ cond_false:         ; preds = %entry
        br i1 %toBool210, label %cond_true11, label %cond_false15
 
 cond_true11:           ; preds = %cond_next
-       %tmp13 = call i32 (...)* @foo( )                ; <i32> [#uses=0]
-       %tmp14 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp13 = call i32 (...) @foo( )         ; <i32> [#uses=0]
+       %tmp14 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_false15:          ; preds = %cond_next
-       %tmp16 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
-       %tmp17 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp16 = call i32 (...) @bar( )         ; <i32> [#uses=0]
+       %tmp17 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_next18:           ; preds = %cond_false15, %cond_true11
-       %tmp19 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
+       %tmp19 = call i32 (...) @bar( )         ; <i32> [#uses=0]
        br label %return
 
 return:                ; preds = %cond_next18
index 1edaefbc0343e954b98903fc8c57f9f8a182437e..52cc37e2408453ee85d37deac39741613ccb20ef 100644 (file)
@@ -36,8 +36,8 @@ entry:
        br i1 %toBool, label %cond_true, label %cond_false
 
 cond_true:             ; preds = %entry
-       %tmp3 = call i32 (...)* @bar( )         ; <i32> [#uses=0]
-       %tmp4 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp3 = call i32 (...) @bar( )          ; <i32> [#uses=0]
+       %tmp4 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        %tmp7 = load i32, i32* %q_addr          ; <i32> [#uses=1]
        %tmp8 = icmp ne i32 %tmp7, 0            ; <i1> [#uses=1]
        %tmp89 = zext i1 %tmp8 to i8            ; <i8> [#uses=1]
@@ -45,8 +45,8 @@ cond_true:            ; preds = %entry
        br i1 %toBool10, label %cond_true11, label %cond_false15
 
 cond_false:            ; preds = %entry
-       %tmp5 = call i32 (...)* @foo( )         ; <i32> [#uses=0]
-       %tmp6 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
+       %tmp5 = call i32 (...) @foo( )          ; <i32> [#uses=0]
+       %tmp6 = call i32 (...) @baz( i32 5, i32 6 )             ; <i32> [#uses=0]
        %tmp27 = load i32, i32* %q_addr         ; <i32> [#uses=1]
        %tmp28 = icmp ne i32 %tmp27, 0          ; <i1> [#uses=1]
        %tmp289 = zext i1 %tmp28 to i8          ; <i8> [#uses=1]
@@ -54,17 +54,17 @@ cond_false:         ; preds = %entry
        br i1 %toBool210, label %cond_true11, label %cond_false15
 
 cond_true11:           ; preds = %cond_next
-       %tmp13 = call i32 (...)* @foo( )                ; <i32> [#uses=0]
-       %tmp14 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp13 = call i32 (...) @foo( )         ; <i32> [#uses=0]
+       %tmp14 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_false15:          ; preds = %cond_next
-       %tmp16 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
-       %tmp17 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
+       %tmp16 = call i32 (...) @bar( )         ; <i32> [#uses=0]
+       %tmp17 = call i32 (...) @quux( i32 3, i32 4 )           ; <i32> [#uses=0]
        br label %cond_next18
 
 cond_next18:           ; preds = %cond_false15, %cond_true11
-       %tmp19 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
+       %tmp19 = call i32 (...) @bar( )         ; <i32> [#uses=0]
        br label %return
 
 return:                ; preds = %cond_next18
index 5ee8b46bdd1fc0e1ce25927951eccd8161c8f699..753f9e3d1331cbfb8836108dbeb394f364c0ada6 100644 (file)
@@ -13,7 +13,7 @@ bb88.i:               ; preds = %bb74.i
 mandel.exit:           ; preds = %bb88.i
        %tmp2 = load volatile double, double* getelementptr ({ double, double }, { double, double }* @accum, i32 0, i32 0), align 8             ; <double> [#uses=1]
        %tmp23 = fptosi double %tmp2 to i32             ; <i32> [#uses=1]
-       %tmp5 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %tmp23 )            ; <i32> [#uses=0]
+       %tmp5 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 %tmp23 )             ; <i32> [#uses=0]
        ret i32 0
 }
 
index bd1f1742a22bc5c51cda55d188f813702818f085..1ededa3c38773208fb0221c4ece17e06a371b1a5 100644 (file)
@@ -73,10 +73,10 @@ bb609.i.i:          ; preds = %cond_next602.i.i
        br label %bb620.i.i
 bb620.i.i:             ; preds = %bb620.i.i, %bb609.i.i
        %indvar166.i465.i = phi i32 [ %indvar.next167.i.i, %bb620.i.i ], [ 0, %bb609.i.i ]              ; <i32> [#uses=1]
-       %tmp640.i.i = call i32 (%struct.FILE*, i8*, ...)* @fscanf( %struct.FILE* %tmp61, i8* getelementptr ([5 x i8], [5 x i8]* @.str584, i32 0, i32 0), [1024 x i8]* null )            ; <i32> [#uses=0]
+       %tmp640.i.i = call i32 (%struct.FILE*, i8*, ...) @fscanf( %struct.FILE* %tmp61, i8* getelementptr ([5 x i8], [5 x i8]* @.str584, i32 0, i32 0), [1024 x i8]* null )             ; <i32> [#uses=0]
        %tmp648.i.i = load i32, i32* null, align 4              ; <i32> [#uses=1]
        %tmp650.i468.i = icmp sgt i32 0, %tmp648.i.i            ; <i1> [#uses=1]
-       %tmp624.i469.i = call i32 (%struct.FILE*, i8*, ...)* @fscanf( %struct.FILE* %tmp61, i8* getelementptr ([5 x i8], [5 x i8]* @.str584, i32 0, i32 0), [1024 x i8]* null )         ; <i32> [#uses=0]
+       %tmp624.i469.i = call i32 (%struct.FILE*, i8*, ...) @fscanf( %struct.FILE* %tmp61, i8* getelementptr ([5 x i8], [5 x i8]* @.str584, i32 0, i32 0), [1024 x i8]* null )          ; <i32> [#uses=0]
        %indvar.next167.i.i = add i32 %indvar166.i465.i, 1              ; <i32> [#uses=1]
        br i1 %tmp650.i468.i, label %bb653.i.i.loopexit, label %bb620.i.i
 bb653.i.i.loopexit:            ; preds = %bb620.i.i
index d090da07c5030d9e7dc67d1c759310ae676147e0..cad5440bddc92341ef63f8749744b74c8bcb4145 100644 (file)
@@ -81,7 +81,7 @@ bb244:                ; preds = %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122, %bb122
        br i1 %0, label %bb435, label %bb433
 
 bb394:         ; preds = %bb122
-       call void (i32, i32, i8*, i32, %struct.FILE_POS*, ...)* @Error(i32 1, i32 3, i8* getelementptr ([23 x i8], [23 x i8]* @"\01LC13423", i32 0, i32 0), i32 0, %struct.FILE_POS* @no_file_pos, i8* getelementptr ([13 x i8], [13 x i8]* @"\01LC18972", i32 0, i32 0), i8* null) nounwind
+       call void (i32, i32, i8*, i32, %struct.FILE_POS*, ...) @Error(i32 1, i32 3, i8* getelementptr ([23 x i8], [23 x i8]* @"\01LC13423", i32 0, i32 0), i32 0, %struct.FILE_POS* @no_file_pos, i8* getelementptr ([13 x i8], [13 x i8]* @"\01LC18972", i32 0, i32 0), i8* null) nounwind
        br label %bb396
 
 bb396:         ; preds = %bb394, %bb131, %bb122, %bb122, %bb122, %bb122, %RESUME
index 606c6b1471b4b02ba6c448eb1544fa2e57e5afe5..e0f9485888d9e1b5e832f87ec58c8eb8db19d2fc 100644 (file)
@@ -4,6 +4,6 @@ declare i32 @printf(i8*, ...)
 
 define i32 @main() {
        %rem_r = frem double 0.000000e+00, 0.000000e+00         ; <double> [#uses=1]
-       %1 = call i32 (i8*, ...)* @printf(i8* null, double %rem_r)              ; <i32> [#uses=0]
+       %1 = call i32 (i8*, ...) @printf(i8* null, double %rem_r)               ; <i32> [#uses=0]
        ret i32 0
 }
index 887fb0b37a9d7e9052504995a844beab7e68bab0..ac641f99dbf9e8934a3990a3e11213276f8188dd 100644 (file)
@@ -5,7 +5,7 @@
 define i16 @fn16(i16 %arg0.0, <2 x i16> %arg1, i16 %arg2.0) nounwind {
 entry:
        store <2 x i16> %arg1, <2 x i16>* null
-       %0 = call i32 (i8*, ...)* @printf(i8* getelementptr ([30 x i8], [30 x i8]* @.str, i32 0, i32 0), i32 0) nounwind                ; <i32> [#uses=0]
+       %0 = call i32 (i8*, ...) @printf(i8* getelementptr ([30 x i8], [30 x i8]* @.str, i32 0, i32 0), i32 0) nounwind         ; <i32> [#uses=0]
        ret i16 0
 }
 
index b616cb3eca59a7cdda2ebfbd11d9fd91041f06ff..ae005dbf4b1364378ba2f0ff4bbbb2b19360ccfc 100644 (file)
@@ -19,7 +19,7 @@ bb1:          ; preds = %bb
 
 bb3:           ; preds = %bb1, %bb
        %iftmp.0.0 = phi i32 [ 0, %bb1 ], [ -1, %bb ]           ; <i32> [#uses=1]
-       %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([7 x i8], [7 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 %iftmp.0.0) nounwind          ; <i32> [#uses=0]
+       %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([7 x i8], [7 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 %iftmp.0.0) nounwind           ; <i32> [#uses=0]
        %2 = load %struct.List*, %struct.List** null, align 4           ; <%struct.List*> [#uses=2]
        %phitmp = icmp eq %struct.List* %2, null                ; <i1> [#uses=1]
        br i1 %phitmp, label %bb5, label %bb
index 0612d51ced52101933d7e732f10578e4f592e2c4..7bbb8090c849124e9ea6ecb1b9228cb69c75d2fd 100644 (file)
@@ -57,6 +57,6 @@ Fft.exit.i:           ; preds = %bb7.i.i
        br i1 undef, label %bb5.i, label %bb1.outer2.i.i.outer
 
 bb5.i:         ; preds = %Fft.exit.i
-       %0 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([15 x i8], [15 x i8]* @"\01LC", i32 0, i32 0), double undef, double undef) nounwind           ; <i32> [#uses=0]
+       %0 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([15 x i8], [15 x i8]* @"\01LC", i32 0, i32 0), double undef, double undef) nounwind            ; <i32> [#uses=0]
        unreachable
 }
index 72a41f9bfaa639d4db058ff4f14ad8c37f4f9dd6..e9c4b0335dc082c7107c381f814f3586ea8cc8e4 100644 (file)
@@ -47,14 +47,14 @@ bb11:               ; preds = %bb9
        tail call  void @diff(i8* undef, i8* %3, i32 undef, i32 undef, i32 undef, i32 undef) nounwind
        %4 = sitofp i32 undef to double         ; <double> [#uses=1]
        %5 = fdiv double %4, 1.000000e+01               ; <double> [#uses=1]
-       %6 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([29 x i8], [29 x i8]* @"\01LC12", i32 0, i32 0), double %5) nounwind         ; <i32> [#uses=0]
+       %6 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([29 x i8], [29 x i8]* @"\01LC12", i32 0, i32 0), double %5) nounwind          ; <i32> [#uses=0]
        %7 = load i32, i32* @al_len, align 4            ; <i32> [#uses=1]
        %8 = load i32, i32* @no_mat, align 4            ; <i32> [#uses=1]
        %9 = load i32, i32* @no_mis, align 4            ; <i32> [#uses=1]
        %10 = sub i32 %7, %8            ; <i32> [#uses=1]
        %11 = sub i32 %10, %9           ; <i32> [#uses=1]
-       %12 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC16", i32 0, i32 0), i32 %11) nounwind          ; <i32> [#uses=0]
-       %13 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([47 x i8], [47 x i8]* @"\01LC17", i32 0, i32 0), i32 undef, i32 %1, i32 undef, i32 undef) nounwind          ; <i32> [#uses=0]
+       %12 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC16", i32 0, i32 0), i32 %11) nounwind           ; <i32> [#uses=0]
+       %13 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([47 x i8], [47 x i8]* @"\01LC17", i32 0, i32 0), i32 undef, i32 %1, i32 undef, i32 undef) nounwind           ; <i32> [#uses=0]
        br i1 undef, label %bb15, label %bb12
 
 bb12:          ; preds = %bb11
index 92b1869f20e3f78e9f5747c4c41624196d525fde..08291e62b65e6890711112ef50c7889787760ceb 100644 (file)
@@ -42,10 +42,10 @@ bb11:               ; preds = %bb9
        store i32 0, i32* @no_mis, align 4
        %4 = getelementptr i8, i8* %B, i32 %0           ; <i8*> [#uses=1]
        tail call  void @diff(i8* undef, i8* %4, i32 undef, i32 %3, i32 undef, i32 undef) nounwind
-       %5 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC11", i32 0, i32 0), i32 %tmp13) nounwind                ; <i32> [#uses=0]
+       %5 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC11", i32 0, i32 0), i32 %tmp13) nounwind         ; <i32> [#uses=0]
        %6 = load i32, i32* @no_mis, align 4            ; <i32> [#uses=1]
-       %7 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC15", i32 0, i32 0), i32 %6) nounwind            ; <i32> [#uses=0]
-       %8 = tail call  i32 (i8*, ...)* @printf(i8* getelementptr ([47 x i8], [47 x i8]* @"\01LC17", i32 0, i32 0), i32 undef, i32 %1, i32 undef, i32 %2) nounwind              ; <i32> [#uses=0]
+       %7 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([33 x i8], [33 x i8]* @"\01LC15", i32 0, i32 0), i32 %6) nounwind             ; <i32> [#uses=0]
+       %8 = tail call  i32 (i8*, ...) @printf(i8* getelementptr ([47 x i8], [47 x i8]* @"\01LC17", i32 0, i32 0), i32 undef, i32 %1, i32 undef, i32 %2) nounwind               ; <i32> [#uses=0]
        br i1 undef, label %bb15, label %bb12
 
 bb12:          ; preds = %bb11
index b43f2a66500806397ddfd58db93b82ade17eadd5..39f3292e260bdbe7eda5385bf8114a76c85fcb90 100644 (file)
@@ -8,7 +8,7 @@ entry:
 ;CHECK: [sp, #8]
 ;CHECK: [sp, #12]
 ;CHECK: [sp]
-        tail call  void (i8*, ...)* @f(i8* getelementptr ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i32 1, double 2.000000e+00, i32 3, double 4.000000e+00)
+        tail call  void (i8*, ...) @f(i8* getelementptr ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i32 1, double 2.000000e+00, i32 3, double 4.000000e+00)
         ret void
 }
 
index 89ad5f50aab4b2c61e86834ccf70d0edb70e566d..deb588403265ec1d3819244c1323064cce05e96a 100644 (file)
@@ -19,12 +19,12 @@ entry:
   %tmp21 = load i32, i32* undef                        ; <i32> [#uses=1]
   %0 = mul i32 1, %tmp21                          ; <i32> [#uses=1]
   %vla22 = alloca i8, i32 %0, align 1             ; <i8*> [#uses=1]
-  call  void (...)* @zz(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i32 2, i32 1)
+  call  void (...) @zz(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i32 2, i32 1)
   br i1 undef, label %if.then, label %if.end36
 
 if.then:                                          ; preds = %entry
-  %call = call  i32 (...)* @x(%struct.q* undef, i8* undef, i8* %vla6, i8* %vla10, i32 undef) ; <i32> [#uses=0]
-  %call35 = call  i32 (...)* @x(%struct.q* undef, i8* %vla14, i8* %vla18, i8* %vla22, i32 undef) ; <i32> [#uses=0]
+  %call = call  i32 (...) @x(%struct.q* undef, i8* undef, i8* %vla6, i8* %vla10, i32 undef) ; <i32> [#uses=0]
+  %call35 = call  i32 (...) @x(%struct.q* undef, i8* %vla14, i8* %vla18, i8* %vla22, i32 undef) ; <i32> [#uses=0]
   unreachable
 
 if.end36:                                         ; preds = %entry
index 9cd61d38b921d565264fa24e21ef73e3bce5846c..6f55ac05805436889e44e75b0cdd37e982684bd1 100644 (file)
@@ -13,7 +13,7 @@
 define void @TW_oldinput(%struct.FILE* nocapture %fp) nounwind {
 entry:
   %xcenter = alloca i32, align 4                  ; <i32*> [#uses=2]
-  %0 = call i32 (%struct.FILE*, i8*, ...)* @fscanf(%struct.FILE* %fp, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str2708, i32 0, i32 0), i32* undef, i32* undef, i32* %xcenter, i32* null) nounwind ; <i32> [#uses=1]
+  %0 = call i32 (%struct.FILE*, i8*, ...) @fscanf(%struct.FILE* %fp, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str2708, i32 0, i32 0), i32* undef, i32* undef, i32* %xcenter, i32* null) nounwind ; <i32> [#uses=1]
   %1 = icmp eq i32 %0, 4                          ; <i1> [#uses=1]
   br i1 %1, label %bb, label %return
 
@@ -137,7 +137,7 @@ bb322:                                            ; preds = %bb248
   br i1 undef, label %bb248, label %bb445
 
 bb445:                                            ; preds = %bb322, %bb10, %bb
-  %49 = call i32 (%struct.FILE*, i8*, ...)* @fscanf(%struct.FILE* %fp, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str2708, i32 0, i32 0), i32* undef, i32* undef, i32* %xcenter, i32* null) nounwind ; <i32> [#uses=1]
+  %49 = call i32 (%struct.FILE*, i8*, ...) @fscanf(%struct.FILE* %fp, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str2708, i32 0, i32 0), i32* undef, i32* undef, i32* %xcenter, i32* null) nounwind ; <i32> [#uses=1]
   %50 = icmp eq i32 %49, 4                        ; <i1> [#uses=1]
   br i1 %50, label %bb, label %return
 
index 4c5d8d9af2f4a74a81fa4b1d38982e6f839893bf..b02efea929faf30358822b67dbf403abc4a2b253 100644 (file)
@@ -31,7 +31,7 @@ define internal void @_ZN1AD1Ev(%struct.A* nocapture %this) nounwind ssp align 2
 entry:
   %tmp.i = getelementptr inbounds %struct.A, %struct.A* %this, i32 0, i32 0 ; <i32*> [#uses=1]
   %tmp2.i = load i32, i32* %tmp.i                      ; <i32> [#uses=1]
-  %call.i = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str4, i32 0, i32 0), i32 %tmp2.i) nounwind ; <i32> [#uses=0]
+  %call.i = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str4, i32 0, i32 0), i32 %tmp2.i) nounwind ; <i32> [#uses=0]
   %tmp3.i = load i32, i32* @d                          ; <i32> [#uses=1]
   %inc.i = add nsw i32 %tmp3.i, 1                 ; <i32> [#uses=1]
   store i32 %inc.i, i32* @d
@@ -46,7 +46,7 @@ entry:
   %exception.i = tail call i8* @__cxa_allocate_exception(i32 4) nounwind ; <i8*> [#uses=2]
   %tmp2.i.i.i = bitcast i8* %exception.i to i32*  ; <i32*> [#uses=1]
   store i32 1, i32* %tmp2.i.i.i
-  %call.i.i.i = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str5, i32 0, i32 0), i32 1) nounwind ; <i32> [#uses=0]
+  %call.i.i.i = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str5, i32 0, i32 0), i32 1) nounwind ; <i32> [#uses=0]
   invoke void @__cxa_throw(i8* %exception.i, i8* bitcast (%0* @_ZTI1A to i8*), i8* bitcast (void (%struct.A*)* @_ZN1AD1Ev to i8*)) noreturn
           to label %.noexc unwind label %lpad
 
@@ -55,16 +55,16 @@ entry:
 
 try.cont:                                         ; preds = %lpad
   %0 = tail call i8* @__cxa_get_exception_ptr(i8* %exn) nounwind ; <i8*> [#uses=0]
-  %call.i.i = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str3, i32 0, i32 0), i32 2) nounwind ; <i32> [#uses=0]
+  %call.i.i = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str3, i32 0, i32 0), i32 2) nounwind ; <i32> [#uses=0]
   %1 = tail call i8* @__cxa_begin_catch(i8* %exn) nounwind ; <i8*> [#uses=0]
   %puts = tail call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str1, i32 0, i32 0)) ; <i32> [#uses=0]
-  %call.i.i3 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str4, i32 0, i32 0), i32 2) nounwind ; <i32> [#uses=0]
+  %call.i.i3 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str4, i32 0, i32 0), i32 2) nounwind ; <i32> [#uses=0]
   %tmp3.i.i = load i32, i32* @d                        ; <i32> [#uses=1]
   %inc.i.i4 = add nsw i32 %tmp3.i.i, 1            ; <i32> [#uses=1]
   store i32 %inc.i.i4, i32* @d
   tail call void @__cxa_end_catch()
   %tmp13 = load i32, i32* @d                           ; <i32> [#uses=1]
-  %call14 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str2, i32 0, i32 0), i32 2, i32 %tmp13) ; <i32> [#uses=0]
+  %call14 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str2, i32 0, i32 0), i32 2, i32 %tmp13) ; <i32> [#uses=0]
   %tmp16 = load i32, i32* @d                           ; <i32> [#uses=1]
   %cmp = icmp ne i32 %tmp16, 2                    ; <i1> [#uses=1]
   %conv = zext i1 %cmp to i32                     ; <i32> [#uses=1]
index e712e08ddb6ac420a7ffcafd27e2a894a29967a6..f17884e0fa417aae0f4c5ceb8782a4ed0a983c57 100644 (file)
@@ -12,7 +12,7 @@ entry:
   br i1 %cmp, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  tail call void (...)* @g(i32 %a, i32 %b) nounwind
+  tail call void (...) @g(i32 %a, i32 %b) nounwind
   br label %if.end
 
 if.end:                                           ; preds = %if.then, %entry
index 5404cf57a59f02ecc0fd982595658f45c54669f0..864e2917b7bb3b7450569e7ec59aeae81b3bc6c7 100644 (file)
@@ -12,7 +12,7 @@ entry:
   br i1 %cmp, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  tail call void (...)* @h(i32 %a, i32 %b) nounwind
+  tail call void (...) @h(i32 %a, i32 %b) nounwind
   br label %if.end
 
 if.end:                                           ; preds = %if.then, %entry
@@ -31,7 +31,7 @@ entry:
   br i1 %cmp, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  tail call void (...)* @h(i32 %a, i32 %b) nounwind
+  tail call void (...) @h(i32 %a, i32 %b) nounwind
   br label %if.end
 
 if.end:                                           ; preds = %if.then, %entry
index 9f2fa63a70baaa1bfa55adc349c97b253bedea5b..86596d6282fd96101d64175b5dda82dc7ba86e45 100644 (file)
@@ -4,7 +4,7 @@ target triple = "armv6-none-linux-gnueabi"
 
 define void @sample_test(i8* %.T0348, i16* nocapture %sourceA, i16* nocapture %destValues) {
 L.entry:
-  %0 = call i32 (...)* @get_index(i8* %.T0348, i32 0)
+  %0 = call i32 (...) @get_index(i8* %.T0348, i32 0)
   %1 = bitcast i16* %destValues to i8*
   %2 = mul i32 %0, 6
   %3 = getelementptr i8, i8* %1, i32 %2
index b64b1bf4cccf30317efa55cb863681c0f884938d..4a1341c4d6e7106bce7c559cd40a29984892e1ec 100644 (file)
@@ -33,7 +33,7 @@ entry:
 ; CHECK: movw r0, #555
 define i32 @main() {
 entry:
-  call void (i32, ...)* @test_byval_8_bytes_alignment(i32 555, %struct_t* byval @static_val)
+  call void (i32, ...) @test_byval_8_bytes_alignment(i32 555, %struct_t* byval @static_val)
   ret i32 0
 }
 
@@ -48,7 +48,7 @@ define void @test_byval_8_bytes_alignment_fixed_arg(i32 %n1, %struct_t* byval %v
 entry:
   %a = getelementptr inbounds %struct_t, %struct_t* %val, i32 0, i32 0
   %0 = load double, double* %a
-  call void (double)* @f(double %0)
+  call void (double) @f(double %0)
   ret void
 }
 
@@ -60,6 +60,6 @@ entry:
 ; CHECK: movw r0, #555
 define i32 @main_fixed_arg() {
 entry:
-  call void (i32, %struct_t*)* @test_byval_8_bytes_alignment_fixed_arg(i32 555, %struct_t* byval @static_val)
+  call void (i32, %struct_t*) @test_byval_8_bytes_alignment_fixed_arg(i32 555, %struct_t* byval @static_val)
   ret i32 0
 }
index ef06f59b0f45e21143981476b0f0c02b1a09aff9..34af9026b52e57993966b4780185e121e7dc0eea 100644 (file)
@@ -14,6 +14,6 @@ define void @test_byval_usage_scheduling(i32 %n1, i32 %n2, %struct_t* byval %val
 entry:
   %a = getelementptr inbounds %struct_t, %struct_t* %val, i32 0, i32 0
   %0 = load double, double* %a
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), double %0)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), double %0)
   ret void
 }
index 427519f8a842155eba44ad65e4f89f017736248f..d18dbd2db9b40a749aa15adc016c3900d2aabace 100644 (file)
@@ -14,7 +14,7 @@ define void @printfn(i32 %a, i16 signext %b, double %C, i8 signext %E) {
 entry:
   %conv = sext i16 %b to i32
   %conv1 = sext i8 %E to i32
-  %call = tail call i32 (i8*, ...)* @printf(
+  %call = tail call i32 (i8*, ...) @printf(
        i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), ; --> R0
         i32 %a,                                          ; --> R1
         i32 %conv,                                       ; --> R2
index c24d0d23a60070ccfa065f116ddd0e1b49c12dea..04ca3e875487ed3447c9b1a4c8ef534d6dcaaa17 100644 (file)
@@ -38,7 +38,7 @@ entry:
    %tmp0 = load i32, i32* @bar_i
    %tmp2 = call i32 @foo_f()
    %tmp3 = add i32 %tmp, %tmp2
-   %tmp4 = call %FunTy* @bar_f()
+   %tmp4 = call i32 @bar_f()
    %tmp5 = add i32 %tmp3, %tmp4
    %tmp6 = add i32 %tmp1, %tmp5
    %tmp7 = add i32 %tmp6, %tmp0
index e7fbf9f28effea11350213f552f6902308a4758f..3b1d8dd09153afb667d46698ef9be8ac6737a315 100644 (file)
@@ -18,7 +18,7 @@ define i32 @f2() nounwind optsize {
 ; DARWIN-LABEL: f2:
 ; DARWIN: mov  r3, #128
 entry:
-  %0 = tail call i32 (i32, ...)* @g2(i32 5, double 1.600000e+01, i32 128) nounwind optsize ; <i32> [#uses=1]
+  %0 = tail call i32 (i32, ...) @g2(i32 5, double 1.600000e+01, i32 128) nounwind optsize ; <i32> [#uses=1]
   %not. = icmp ne i32 %0, 128                     ; <i1> [#uses=1]
   %.0 = zext i1 %not. to i32                      ; <i32> [#uses=1]
   ret i32 %.0
index e869abeb2dd6c3730f82d75f4e4376b6234eb9ae..f9199ff82b38c202cdda30e3baeb169a56ffc412 100644 (file)
@@ -2,6 +2,6 @@
 
 define void @frame_dummy() {
 entry:
-        %tmp1 = tail call void (i8*)* (void (i8*)*)* asm "", "=r,0,~{dirflag},~{fpsr},~{flags}"( void (i8*)* null )           ; <void (i8*)*> [#uses=0]
+        %tmp1 = tail call void (i8*)* (void (i8*)*) asm "", "=r,0,~{dirflag},~{fpsr},~{flags}"( void (i8*)* null )           ; <void (i8*)*> [#uses=0]
         ret void
 }
index c1aac44a13a49729566d7eb0a4e04b35c84d663f..f6651ae8004efbd9dff9f226d66cbf70ddf33434 100644 (file)
@@ -14,7 +14,7 @@ bb:           ; preds = %bb1
 bb1:           ; preds = %bb, %entry
        %indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ]          ; <i32> [#uses=3]
        %i.0 = bitcast i32 %indvar to i32               ; <i32> [#uses=2]
-       %tmp = tail call i32 (...)* @bar( )             ; <i32> [#uses=1]
+       %tmp = tail call i32 (...) @bar( )              ; <i32> [#uses=1]
        %tmp2 = add i32 %i.0, %tmp              ; <i32> [#uses=1]
        %Ptr_addr.0 = sub i32 %Ptr, %tmp2               ; <i32> [#uses=0]
        %tmp12 = icmp eq i32 %i.0, %Ptr         ; <i1> [#uses=1]
index a041d075751989ab99b9bc0522f61072f8ecd949..12b55c7081dbc9ff9d05e71e99295fc235a361c1 100644 (file)
@@ -10,10 +10,10 @@ define i32 @main() {
 entry:
   %retval = alloca i32, align 4
   store i32 0, i32* %retval
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
   %call1 = call i8* @strcpy(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str1, i32 0, i32 0)) #3
   call void @llvm.clear_cache(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i8* getelementptr inbounds (i8, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i32 32)) #3
-  %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
+  %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
   ret i32 0
 }
 
index d4bd92b8baa6a211f032f87b9fbb4c23a2bdbf98..f45ed73adb714b7785f57589c306bc5d7d43e223 100644 (file)
@@ -9,7 +9,7 @@ entry:
         br i1 %tmp.upgrd.1, label %cond_true, label %UnifiedReturnBlock
 
 cond_true:              ; preds = %entry
-        %tmp.upgrd.2 = tail call i32 (...)* @bar( )             ; <i32> [#uses=0]
+        %tmp.upgrd.2 = tail call i32 (...) @bar( )             ; <i32> [#uses=0]
         ret void
 
 UnifiedReturnBlock:             ; preds = %entry
index 8f3a786d2eff7eae7175cfc259783cb89dd5aa1d..cb57efa7767abfd659ab86f73a16454d87ed90be 100644 (file)
@@ -28,10 +28,10 @@ for.body9:                                        ; preds = %for.body9, %entry
 for.end54:                                        ; preds = %for.body9
   %tmp115 = extractelement <4 x float> %add19, i32 1
   %conv6.i75 = fpext float %tmp115 to double, !dbg !45
-  %call.i82 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i75, double undef, double undef) nounwind, !dbg !45
+  %call.i82 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i75, double undef, double undef) nounwind, !dbg !45
   %tmp116 = extractelement <4 x float> %add20, i32 1
   %conv6.i76 = fpext float %tmp116 to double, !dbg !45
-  %call.i83 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i76, double undef, double undef) nounwind, !dbg !45
+  %call.i83 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i76, double undef, double undef) nounwind, !dbg !45
   ret i32 0, !dbg !49
 }
 
index ca44e67f9ccf13d60d14509737fb9be3428372d2..034d0f46723d6cdaa1c98cb37427832f2f12b20f 100644 (file)
@@ -16,7 +16,7 @@ entry:
   tail call void @llvm.dbg.value(metadata double %val, i64 0, metadata !20, metadata !MDExpression()), !dbg !26
   tail call void @llvm.dbg.value(metadata i8 %c, i64 0, metadata !21, metadata !MDExpression()), !dbg !26
   %0 = zext i8 %c to i32, !dbg !27
-  %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !27
+  %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !27
   ret i32 0, !dbg !29
 }
 
@@ -26,7 +26,7 @@ entry:
   tail call void @llvm.dbg.value(metadata double %val, i64 0, metadata !17, metadata !MDExpression()), !dbg !30
   tail call void @llvm.dbg.value(metadata i8 %c, i64 0, metadata !18, metadata !MDExpression()), !dbg !30
   %0 = zext i8 %c to i32, !dbg !31
-  %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !31
+  %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !31
   ret i32 0, !dbg !33
 }
 
@@ -49,7 +49,7 @@ entry:
   tail call void @llvm.dbg.value(metadata double %1, i64 0, metadata !50, metadata !MDExpression()) nounwind, !dbg !38
   tail call void @llvm.dbg.value(metadata i8 %5, i64 0, metadata !51, metadata !MDExpression()) nounwind, !dbg !38
   %6 = zext i8 %5 to i32, !dbg !39
-  %7 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %3, double %1, i32 %6) nounwind, !dbg !39
+  %7 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %3, double %1, i32 %6) nounwind, !dbg !39
   %8 = tail call i32 @printer(i8* %3, double %1, i8 zeroext %5) nounwind, !dbg !40
   ret i32 0, !dbg !41
 }
index bcb51137354410333761e2e14c75d2868c2835b7..9cfd67d23170ec9c478e811514940b84047bd3f5 100644 (file)
@@ -27,7 +27,7 @@ for.end54:                                        ; preds = %for.body9
   tail call void @llvm.dbg.value(metadata <4 x float> %add19, i64 0, metadata !27, metadata !MDExpression()), !dbg !39
   %tmp115 = extractelement <4 x float> %add19, i32 1
   %conv6.i75 = fpext float %tmp115 to double, !dbg !45
-  %call.i82 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i75, double undef, double undef) nounwind, !dbg !45
+  %call.i82 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i75, double undef, double undef) nounwind, !dbg !45
   ret i32 0, !dbg !49
 }
 
index 5b7fcd6ec2303b49e2b2b6ef624bf626223c17bc..3cd2837714eae9a0c6f37632d475fece51610317 100644 (file)
@@ -19,7 +19,7 @@ entry:
   tail call void @llvm.dbg.value(metadata i8 %c, i64 0, metadata !12, metadata !MDExpression()), !dbg !26
   %conv = fpext float %val to double, !dbg !27
   %conv3 = zext i8 %c to i32, !dbg !27
-  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !27
+  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !27
   ret i32 0, !dbg !29
 }
 
@@ -32,7 +32,7 @@ entry:
   tail call void @llvm.dbg.value(metadata i8 %c, i64 0, metadata !16, metadata !MDExpression()), !dbg !32
   %conv = fpext float %val to double, !dbg !33
   %conv3 = zext i8 %c to i32, !dbg !33
-  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !33
+  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !33
   ret i32 0, !dbg !35
 }
 
@@ -53,7 +53,7 @@ entry:
   tail call void @llvm.dbg.value(metadata i8 %conv6, i64 0, metadata !62, metadata !MDExpression()) nounwind, !dbg !43
   %conv.i = fpext float %conv1 to double, !dbg !44
   %conv3.i = and i32 %add5, 255, !dbg !44
-  %call.i = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %add.ptr, double %conv.i, i32 %conv3.i) nounwind optsize, !dbg !44
+  %call.i = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %add.ptr, double %conv.i, i32 %conv3.i) nounwind optsize, !dbg !44
   %call14 = tail call i32 @printer(i8* %add.ptr, float %conv1, i8 zeroext %conv6) optsize, !dbg !45
   ret i32 0, !dbg !46
 }
index aa37e7d227118d0d2867b019b1e6e6275d108df7..35442eea1005258ff1424546fce40a378ca6c24c 100644 (file)
@@ -37,7 +37,7 @@ entry:
 ; THUMB: str.w {{[a-z0-9]+}}, [sp]
 ; THUMB: str.w {{[a-z0-9]+}}, [sp, #4]
 ; THUMB: bl {{_?}}CallVariadic
-  %call = call i32 (i32, ...)* @CallVariadic(i32 5, i32 %0, i32 %1, i32 %2, i32 %3, i32 %4)
+  %call = call i32 (i32, ...) @CallVariadic(i32 5, i32 %0, i32 %1, i32 %2, i32 %3, i32 %4)
   store i32 %call, i32* %tmp, align 4
   %5 = load i32, i32* %tmp, align 4
   ret i32 %5
index 1de057208ce37c2594fa65639a766d247f733309..d013fbf8c15acab1c5660922fa8e475482af5e88 100644 (file)
@@ -48,7 +48,7 @@ entry:
 ; SOFT: vmov.i32 [[REG6:(d[0-9]+)]], #0x80000000
 ; SOFT: vshr.u64 [[REG7]], [[REG7]], #32
 ; SOFT: vbsl [[REG6]], [[REG7]], 
-  %0 = tail call double (...)* @bar() nounwind
+  %0 = tail call double (...) @bar() nounwind
   %1 = fptrunc double %0 to float
   %2 = tail call float @copysignf(float 5.000000e-01, float %1) nounwind readnone
   %3 = fadd float %1, %2
index 9731b3d39b65e0ed1847cb118562fd7c4b8cd810..f34f8f1a66c1318e39d92d5f628c14e279c84375 100644 (file)
@@ -16,6 +16,6 @@ define ghccc void @test_indirect_tail() {
 ; CHECK-LABEL: test_indirect_tail:
 ; CHECK: bx {{r[0-9]+}}
   %func = load void()*, void()** @ind_func
-  tail call ghccc void()* %func()
+  tail call ghccc void() %func()
   ret void
 }
index a00dedaee67078dbb24610a678ba1af738da6daf..78901930e4b269bb51ba19a7d603274415ddae14 100644 (file)
@@ -10,7 +10,7 @@ entry:
        br i1 %tmp7, label %cond_true, label %UnifiedReturnBlock
 
 cond_true:             ; preds = %entry
-       %tmp10 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
+       %tmp10 = call i32 (...) @bar( )         ; <i32> [#uses=0]
        ret void
 
 UnifiedReturnBlock:            ; preds = %entry
index 044fb5610a635b929a8d038a2e9c9a24b8d31e17..ca068db1db0e492927d2228a2f70bf0f4542279b 100644 (file)
@@ -27,7 +27,7 @@ define i32 @func() nounwind ssp {
   %9 = load i32, i32* %8
   %10 = add i32 %9, ptrtoint (i8* blockaddress(@func, %4) to i32)
   %11 = inttoptr i32 %10 to i8*
-  %12 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @0, i32 0, i32 0))
+  %12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @0, i32 0, i32 0))
   indirectbr i8* %11, [label %13, label %14]
 
 ; <label>:13                                      ; preds = %4
index 8f0f3a8d6fe278d9a7e3ae57f515ee76245e3a1e..4eeaa8abfab2311640e3e91014d33a82a8379475 100644 (file)
@@ -64,7 +64,7 @@ for.body:                                         ; preds = %for.body, %entry
 ; CHECK-DARWINA15: vmul.f32 s{{[0-9]*}}
 ; CHECK-DARWINSWIFT: vmul.f32 d{{[0-9]*}}
   %conv = fpext float %mul to double
-  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), double %conv) #1
+  %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), double %conv) #1
   %inc = add nsw i32 %i.04, 1
   %exitcond = icmp eq i32 %inc, 16000
   br i1 %exitcond, label %for.end, label %for.body
index f92112756aa962b3e80c31ac98396ec3b8b91cc4..4c5d44c352b2886e17e54c52ca416ced43aa0eb7 100644 (file)
@@ -17,7 +17,7 @@ entry:
   %or = or i32 %cond13, %bf.clear10
   %shl = shl nuw i32 %or, 2
   %add = add i32 0, %shl
-  tail call void (i8*, i32, i32, i8*, ...)* @__sprintf_chk(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @operands, i32 0, i32 0), i32 0, i32 50, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str86, i32 0, i32 0), i32 undef, i32 undef, i32 %add)
+  tail call void (i8*, i32, i32, i8*, ...) @__sprintf_chk(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @operands, i32 0, i32 0), i32 0, i32 50, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str86, i32 0, i32 0), i32 undef, i32 undef, i32 %add)
   ret void
 }
 
index 3999168de6b7316952f6646d5688fd96eab2743a..6f5c0e8279a937d4ddd35aad24de5a0b165c0300 100644 (file)
@@ -64,7 +64,7 @@ entry:
 ; A9-NOT: ldr [[REG:r[0-9]+]], [r0, r1, lsl #2]!
 ; A9: str [[REG]], [r0, r1, lsl #2]
 ; A9-NOT: str [[REG]], [r0]
-  %0 = tail call i8* (...)* @malloc(i32 undef) nounwind
+  %0 = tail call i8* (...) @malloc(i32 undef) nounwind
   %1 = bitcast i8* %0 to i32*
   %2 = sext i16 %addr to i32
   %3 = getelementptr inbounds i32, i32* %1, i32 %2
index 15f8ec2d4b560c743b6ffbee36998f399b22da35..2a7a82da8f691ae29a8af90defba2ecfad86a507 100644 (file)
@@ -16,7 +16,7 @@ entry:
   %title = alloca [15 x i8], align 1
   %0 = getelementptr inbounds [15 x i8], [15 x i8]* %title, i32 0, i32 0
   call void @llvm.memcpy.p0i8.p0i8.i32(i8* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @main.title, i32 0, i32 0), i32 15, i32 1, i1 false)
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* %0) #3
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* %0) #3
   ret i32 0
 }
 
index 31c6ecd1be2fea0013dab2938ecb6a7fc03b67dc..88207e6be105d5cb8e810b57d64919aae851e87d 100644 (file)
@@ -10,7 +10,7 @@ entry:
 ; CHECK: main
 ; CHECK: push
 ; CHECK: stm
-       %0 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([26 x i8], [26 x i8]* @"\01LC1", i32 0, i32 0), i32 -2, i32 -3, i32 2, i32 -6) nounwind               ; <i32> [#uses=0]
-       %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([32 x i8], [32 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 1, i32 0, i32 1, i32 0, i32 1) nounwind             ; <i32> [#uses=0]
+       %0 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([26 x i8], [26 x i8]* @"\01LC1", i32 0, i32 0), i32 -2, i32 -3, i32 2, i32 -6) nounwind                ; <i32> [#uses=0]
+       %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([32 x i8], [32 x i8]* @"\01LC", i32 0, i32 0), i32 0, i32 1, i32 0, i32 1, i32 0, i32 1) nounwind              ; <i32> [#uses=0]
        ret i32 0
 }
index f77603ed933d8bb470d6e8d811a2093bc76f8a37..cd35ce74d8ee6155abf0b93f0199685b7c921c2d 100644 (file)
@@ -10,7 +10,7 @@ entry:
        %0 = load i64, i64* null, align 4               ; <i64> [#uses=1]
        %1 = uitofp i64 %0 to double            ; <double> [#uses=1]
        %2 = fdiv double 0.000000e+00, %1               ; <double> [#uses=1]
-       %3 = call i32 (%struct.FILE*, i8*, ...)* @fprintf(%struct.FILE* null, i8* getelementptr ([54 x i8], [54 x i8]* @"\01LC10", i32 0, i32 0), i64 0, double %2)             ; <i32> [#uses=0]
+       %3 = call i32 (%struct.FILE*, i8*, ...) @fprintf(%struct.FILE* null, i8* getelementptr ([54 x i8], [54 x i8]* @"\01LC10", i32 0, i32 0), i64 0, double %2)              ; <i32> [#uses=0]
        ret void
 }
 
index 78d8448fe2f7994ed5b083a052168c2cc84410e3..41ec03857f08fac9f05b0887610e4ccac4f12b64 100644 (file)
@@ -4,8 +4,8 @@
 
 define i32 @main() {
 entry:
-        %tmp = call i32 (i8*, ...)* @printf( i8* getelementptr ([43 x i8], [43 x i8]* @str, i32 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10 )         ; <i32> [#uses=0]
-        %tmp2 = call i32 (i8*, ...)* @printf( i8* getelementptr ([43 x i8], [43 x i8]* @str, i32 0, i64 0), i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1 )                ; <i32> [#uses=0]
+        %tmp = call i32 (i8*, ...) @printf( i8* getelementptr ([43 x i8], [43 x i8]* @str, i32 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10 )         ; <i32> [#uses=0]
+        %tmp2 = call i32 (i8*, ...) @printf( i8* getelementptr ([43 x i8], [43 x i8]* @str, i32 0, i64 0), i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1 )                ; <i32> [#uses=0]
         ret i32 11
 }
 
index b8058c8e8716a809aca3c99bbcf213c0a09e7771..9e3225ebcda0abba5457e8bfb6a19443aac6eab9 100644 (file)
@@ -25,7 +25,7 @@ entry:
   %8 = shufflevector <8 x i64> %1, <8 x i64> %3, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11>
   %9 = shufflevector <8 x i64> %1, <8 x i64> %3, <8 x i32> <i32 4, i32 12, i32 5, i32 13, i32 6, i32 14, i32 7, i32 15>
 
-  tail call void(<8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>)* @foo(<8 x i64> %1, <8 x i64> %3, <8 x i64> %5, <8 x i64> %7, <8 x i64> %8, <8 x i64> %9)
+  tail call void(<8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>) @foo(<8 x i64> %1, <8 x i64> %3, <8 x i64> %5, <8 x i64> %7, <8 x i64> %8, <8 x i64> %9)
   ret void
 }
 
index 31b55e8571d042d02ea5ea0c5bc7905a97fb04fa..03c0354aa1df929b34b2f4f662ae89894d87e95d 100644 (file)
@@ -124,11 +124,11 @@ entry:
        br i1 %tmp6, label %cond_true, label %cond_false
 
 cond_true:             ; preds = %entry
-       %tmp.upgrd.2 = tail call i32 (...)* @bar( )             ; <i32> [#uses=0]
+       %tmp.upgrd.2 = tail call i32 (...) @bar( )              ; <i32> [#uses=0]
        ret void
 
 cond_false:            ; preds = %entry
-       %tmp7 = tail call i32 (...)* @baz( )            ; <i32> [#uses=0]
+       %tmp7 = tail call i32 (...) @baz( )             ; <i32> [#uses=0]
        ret void
 }
 
@@ -147,10 +147,10 @@ entry:
        br i1 %tmp.upgrd.3, label %cond_true, label %cond_false
 
 cond_true:             ; preds = %entry
-       %tmp.upgrd.4 = tail call i32 (...)* @bar( )             ; <i32> [#uses=0]
+       %tmp.upgrd.4 = tail call i32 (...) @bar( )              ; <i32> [#uses=0]
        ret void
 
 cond_false:            ; preds = %entry
-       %tmp1 = tail call i32 (...)* @baz( )            ; <i32> [#uses=0]
+       %tmp1 = tail call i32 (...) @baz( )             ; <i32> [#uses=0]
        ret void
 }
index 82ab90efb118c7dbcea78de1504aa353ea25e745..a2911d780fef11fe55eee4ed167c1dd7069dbb9a 100644 (file)
@@ -8,7 +8,7 @@ entry:
        br i1 %tmp5, label %UnifiedReturnBlock, label %cond_true8
 
 cond_true8:            ; preds = %entry
-       %tmp10 = tail call i32 (...)* %t.0( )           ; <i32> [#uses=1]
+       %tmp10 = tail call i32 (...) %t.0( )            ; <i32> [#uses=1]
        ret i32 %tmp10
 
 UnifiedReturnBlock:            ; preds = %entry
index 366bc17bcf2dac7511d7c120ce8a536feb6c4075..be038e9a3d8c76d004eb07eabafd4a24c7ec49ec 100644 (file)
@@ -26,7 +26,7 @@ define i32 @bpf_prog1(%struct.bpf_context* nocapture %ctx) #0 section "events/ne
 ; <label>:10                                      ; preds = %0
   %11 = getelementptr inbounds [15 x i8], [15 x i8]* %fmt, i64 0, i64 0
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @bpf_prog1.fmt, i64 0, i64 0), i64 15, i32 1, i1 false)
-  %12 = call i32 (i8*, i32, ...)* inttoptr (i64 11 to i32 (i8*, i32, ...)*)(i8* %11, i32 15, %struct.sk_buff* %4, i8* %7) #1
+  %12 = call i32 (i8*, i32, ...) inttoptr (i64 11 to i32 (i8*, i32, ...)*)(i8* %11, i32 15, %struct.sk_buff* %4, i8* %7) #1
 ; CHECK-LABEL: bpf_prog1:
 ; CHECK: call 4
 ; CHECK: call 9
index b9040efbbdc693dfcd0394ff693c3289a8de892c..09a6b65d085417e162e0f2da78153cc814d61041 100644 (file)
@@ -106,7 +106,7 @@ define void @foo_printf() #1 {
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @foo_printf.fmt, i64 0, i64 0), i64 9, i32 1, i1 false)
 ; CHECK-LABEL: foo_printf:
 ; CHECK: ld_64 r1, 729618802566522216
-  %2 = call i32 (i8*, ...)* @printf(i8* %1) #3
+  %2 = call i32 (i8*, ...) @printf(i8* %1) #3
   ret void
 }
 
index ae1858222d24dc8de9a42fa64a5c21eb59ad89ee..470303d6bb0543845c22c680c64d8876e25550a6 100644 (file)
@@ -3,7 +3,7 @@
 define x86_fp80 @some_func() nounwind {
 entry:
        %retval = alloca x86_fp80               ; <x86_fp80*> [#uses=2]
-       %call = call i32 (...)* @other_func()           ; <i32> [#uses=1]
+       %call = call i32 (...) @other_func()            ; <i32> [#uses=1]
        %conv = sitofp i32 %call to x86_fp80            ; <x86_fp80> [#uses=1]
        store x86_fp80 %conv, x86_fp80* %retval
        %0 = load x86_fp80, x86_fp80* %retval           ; <x86_fp80> [#uses=1]
index a130085de56238940c6a70ac69a7f0beae3bf93b..7e402f595809a544354a9892306b94e100c95a3f 100644 (file)
@@ -31,11 +31,11 @@ entry:
         br i1 %tmp.8, label %then, label %else
 
 then:           ; preds = %entry
-        %tmp.11 = call i32 (i8*, ...)* @printf( i8* getelementptr ([6 x i8], [6 x i8]* @.str_1, i64 0, i64 0) )           ; <i32> [#uses=0]
+        %tmp.11 = call i32 (i8*, ...) @printf( i8* getelementptr ([6 x i8], [6 x i8]* @.str_1, i64 0, i64 0) )           ; <i32> [#uses=0]
         br label %UnifiedExitNode
 
 else:           ; preds = %entry
-        %tmp.13 = call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8], [7 x i8]* @.str_2, i64 0, i64 0) )           ; <i32> [#uses=0]
+        %tmp.13 = call i32 (i8*, ...) @printf( i8* getelementptr ([7 x i8], [7 x i8]* @.str_2, i64 0, i64 0) )           ; <i32> [#uses=0]
         br label %UnifiedExitNode
 
 UnifiedExitNode:                ; preds = %else, %then
index e58fc97fa8156f092768e316258b8faaffca9417..928b57efda167e3aa73635b1c16255e99b87d5d6 100644 (file)
@@ -14,7 +14,7 @@ entry:
         %tmp.11 = call i64 @getL( )             ; <i64> [#uses=2]
         %tmp.5 = trunc i64 %tmp.11 to i32               ; <i32> [#uses=2]
         %tmp.23 = and i64 %tmp.11, -4294967296          ; <i64> [#uses=2]
-        %tmp.16 = call i32 (i8*, ...)* @printf( i8* getelementptr ([42 x i8], [42 x i8]* @.str_1, i64 0, i64 0), i32 %tmp.5, i32 %tmp.5, i64 %tmp.23, i64 %tmp.23 )              ; <i32> [#uses=0]
+        %tmp.16 = call i32 (i8*, ...) @printf( i8* getelementptr ([42 x i8], [42 x i8]* @.str_1, i64 0, i64 0), i32 %tmp.5, i32 %tmp.5, i64 %tmp.23, i64 %tmp.23 )              ; <i32> [#uses=0]
         ret i32 0
 }
 
index 72968d77465673f483d34fcf8dd32a1385e5289c..73ad186be551e11d8d814d62ed7aff9e98f51049 100644 (file)
@@ -28,7 +28,7 @@ entry:
 define i32 @main() {
 entry:
         %result = call i32 @adj( i32 3, i32 2 )         ; <i32> [#uses=1]
-        %tmp.0 = call i32 (i8*, ...)* @printf( i8* getelementptr ([30 x i8], [30 x i8]* @.str_1, i64 0, i64 0), i32 3, i32 2, i32 %result )              ; <i32> [#uses=0]
+        %tmp.0 = call i32 (i8*, ...) @printf( i8* getelementptr ([30 x i8], [30 x i8]* @.str_1, i64 0, i64 0), i32 3, i32 2, i32 %result )              ; <i32> [#uses=0]
         ret i32 0
 }
 
index 0d0c37b003f85021ee02a35fd8750ab20fe023dc..010c0c5536380b05223fdb081b7fe821f48e302a 100644 (file)
@@ -28,8 +28,8 @@ loopentry:              ; preds = %loopentry, %entry
         %i = phi i64 [ 0, %entry ], [ %inc.i, %loopentry ]              ; <i64> [#uses=3]
         %cptr = getelementptr [6 x i8], [6 x i8]* @yy_ec, i64 0, i64 %i           ; <i8*> [#uses=1]
         %c = load i8, i8* %cptr             ; <i8> [#uses=1]
-        %ignore = call i32 (i8*, ...)* @printf( i8* getelementptr ([8 x i8], [8 x i8]* @.str_3, i64 0, i64 0), i64 %i )        ; <i32> [#uses=0]
-        %ignore2 = call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @.str_4, i64 0, i64 0), i8 %c )        ; <i32> [#uses=0]
+        %ignore = call i32 (i8*, ...) @printf( i8* getelementptr ([8 x i8], [8 x i8]* @.str_3, i64 0, i64 0), i64 %i )        ; <i32> [#uses=0]
+        %ignore2 = call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @.str_4, i64 0, i64 0), i8 %c )        ; <i32> [#uses=0]
         %inc.i = add i64 %i, 1          ; <i64> [#uses=2]
         %done = icmp sle i64 %inc.i, 5          ; <i1> [#uses=1]
         br i1 %done, label %loopentry, label %exit.1
index 45d620419ea16bacfd1cace3b91171d304bed983..e6ab9d280c73d1c15a371c637e36a5d49a2e451e 100644 (file)
@@ -11,7 +11,7 @@
 define void @printArgsNoRet(i32 %a1, float %a2, i8 %a3, double %a4, i8* %a5, i32 %a6, float %a7, i8 %a8, double %a9, i8* %a10, i32 %a11, float %a12, i8 %a13, double %a14, i8* %a15) {
 entry:
        %tmp17 = sext i8 %a13 to i32            ; <i32> [#uses=1]
-       %tmp23 = call i32 (i8*, ...)* @printf( i8* getelementptr ([29 x i8], [29 x i8]* @str2, i32 0, i64 0), i32 %a11, double 0.000000e+00, i32 %tmp17, double %a14, i32 0 )           ; <i32> [#uses=0]
+       %tmp23 = call i32 (i8*, ...) @printf( i8* getelementptr ([29 x i8], [29 x i8]* @str2, i32 0, i64 0), i32 %a11, double 0.000000e+00, i32 %tmp17, double %a14, i32 0 )            ; <i32> [#uses=0]
        ret void
 }
 
index 57673bb2b09938a0873b2bb08f4efc891c005423..12a40116c59bc0c0bdcc493618be0fc93b50e49d 100644 (file)
@@ -18,7 +18,7 @@ bb.i:         ; preds = %cond_next.i, %entry
        br i1 false, label %cond_true.i31, label %cond_next.i
 
 cond_true.i31:         ; preds = %bb.i
-       call void (i32, ...)* @fprintf( i32 0, i8* %tmp11, i8* null )
+       call void (i32, ...) @fprintf( i32 0, i8* %tmp11, i8* null )
        ret void
 
 cond_next.i:           ; preds = %bb.i
index 27a37a9d3c5d3e87cd3f34a51218a105b5e84ad6..3244e5c6f4ce41cbcebcad2b45ceae3eb426035a 100644 (file)
@@ -10,7 +10,7 @@ entry:
        %tmp38 = trunc i64 %tmp37 to i32                ; <i32>:0 [#uses=1]
        %tmp48 = trunc i64 %tmp47 to i32                ; <i32>:0 [#uses=1]
        %tmp58 = trunc i64 %tmp57 to i32                ; <i32>:0 [#uses=1]
-       %tmp40 = tail call i32 (i8*, ...)* @printf( i8* noalias  getelementptr ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i64 %arg, i32 %tmp38, i32 %tmp48, i32 %tmp58 ) nounwind             ; <i32> [#uses=0]
+       %tmp40 = tail call i32 (i8*, ...) @printf( i8* noalias  getelementptr ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i64 %arg, i32 %tmp38, i32 %tmp48, i32 %tmp58 ) nounwind              ; <i32> [#uses=0]
        ret i32 0
 }
 
index 35c0f204bad66f2192432a9dba24ca393ba20012..14800ce5b4582fe292b9613e7449430b02079892 100644 (file)
@@ -7,7 +7,7 @@ entry:
        %tmp106 = load float, float* null, align 4              ; <float> [#uses=1]
        %tmp113 = fadd float %tmp98, %tmp106            ; <float> [#uses=1]
        %tmp119 = fsub float %tmp113, 0.000000e+00              ; <float> [#uses=1]
-       call void (i32, ...)* @foo( i32 0, float 0.000000e+00, float %tmp119 ) nounwind 
+       call void (i32, ...) @foo( i32 0, float 0.000000e+00, float %tmp119 ) nounwind 
        ret void
 }
 
index 5c57b47828545ab707099065ac224b4df3362112..3119dfae0aa0791515c0bd368cb7d2ffff1b7ca0 100644 (file)
@@ -16,7 +16,7 @@ less:           ; preds = %entry
 
 not_less:               ; preds = %less, %entry
         %t2 = phi i32 [ sub (i32 ptrtoint (i32* @XA to i32), i32 ptrtoint (i32* @XB to i32)), %less ], [ sub (i32 ptrtoint (i32* @XA to i32), i32 ptrtoint (i32* @XB to i32)), %entry ]               ; <i32> [#uses=1]
-        %tmp.39 = call i32 (i8*, ...)* @printf( i8* getelementptr ([16 x i8], [16 x i8]* @.str_1, i64 0, i64 0), i32 %t2 )      ; <i32> [#uses=0]
+        %tmp.39 = call i32 (i8*, ...) @printf( i8* getelementptr ([16 x i8], [16 x i8]* @.str_1, i64 0, i64 0), i32 %t2 )      ; <i32> [#uses=0]
         ret void
 }
 
index 91fcfba1a9057487e7edaf142a259b5715cc65ca..31fc4e653d7b091ff9c63e140ff2eee44a8fd167 100644 (file)
@@ -2,23 +2,23 @@
 
 define i32 @foo() {
 entry:
-  %call = tail call i32 (...)* @baz()
-  %call1 = tail call i32 (...)* @baz()
-  %call2 = tail call i32 (...)* @baz()
-  %call3 = tail call i32 (...)* @baz()
-  %call4 = tail call i32 (...)* @baz()
-  %call5 = tail call i32 (...)* @baz()
-  %call6 = tail call i32 (...)* @baz()
-  %call7 = tail call i32 (...)* @baz()
-  %call8 = tail call i32 (...)* @baz()
-  %call9 = tail call i32 (...)* @baz()
-  %call10 = tail call i32 (...)* @baz()
-  %call11 = tail call i32 (...)* @baz()
-  %call12 = tail call i32 (...)* @baz()
-  %call13 = tail call i32 (...)* @baz()
-  %call14 = tail call i32 (...)* @baz()
-  %call15 = tail call i32 (...)* @baz()
-  %call16 = tail call i32 (...)* @baz()
+  %call = tail call i32 (...) @baz()
+  %call1 = tail call i32 (...) @baz()
+  %call2 = tail call i32 (...) @baz()
+  %call3 = tail call i32 (...) @baz()
+  %call4 = tail call i32 (...) @baz()
+  %call5 = tail call i32 (...) @baz()
+  %call6 = tail call i32 (...) @baz()
+  %call7 = tail call i32 (...) @baz()
+  %call8 = tail call i32 (...) @baz()
+  %call9 = tail call i32 (...) @baz()
+  %call10 = tail call i32 (...) @baz()
+  %call11 = tail call i32 (...) @baz()
+  %call12 = tail call i32 (...) @baz()
+  %call13 = tail call i32 (...) @baz()
+  %call14 = tail call i32 (...) @baz()
+  %call15 = tail call i32 (...) @baz()
+  %call16 = tail call i32 (...) @baz()
   %call17 = tail call i32 @bar(i32 %call, i32 %call1, i32 %call2, i32 %call3, i32 %call4, i32 %call5, i32 %call6, i32 %call7, i32 %call8, i32 %call9, i32 %call10, i32 %call11, i32 %call12, i32 %call13, i32 %call14, i32 %call15, i32 %call16)
   ret i32 %call17
 }
index b09191540d420b7e41b77966ee2e1e9fa5b09f3b..2a7456cbc2110b5ae3c5c0a3324bca356604383e 100644 (file)
@@ -14,11 +14,11 @@ entry:
   br i1 %obit, label %carry, label %normal
 
 normal:
-  %t1 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
+  %t1 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
   ret i1 true
 
 carry:
-  %t2 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
+  %t2 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
   ret i1 false
 }
 
index 7edc1f810d8e42bc3cbdb61089669e8607cc67f7..6f06ae6b2afea133b35328a0ea80aa14692590a9 100644 (file)
@@ -12,11 +12,11 @@ entry:
   br i1 %obit, label %overflow, label %normal
 
 normal:
-  %t1 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
+  %t1 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
   ret i1 true
 
 overflow:
-  %t2 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
+  %t2 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
   ret i1 false
 }
 
@@ -29,11 +29,11 @@ entry:
   br i1 %obit, label %carry, label %normal
 
 normal:
-  %t1 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
+  %t1 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum32 ) nounwind
   ret i1 true
 
 carry:
-  %t2 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
+  %t2 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
   ret i1 false
 }
 
index 220405523f3f50900bf8fcf44ce4386fbe2a9c68..b6bbaa1dc9637446acdf064824e91de763d960dc 100644 (file)
@@ -12,11 +12,11 @@ entry:
   br i1 %obit, label %overflow, label %normal
 
 normal:
-  %t1 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum ) nounwind
+  %t1 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum ) nounwind
   ret i1 true
 
 overflow:
-  %t2 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
+  %t2 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
   ret i1 false
 }
 
@@ -28,11 +28,11 @@ entry:
   br i1 %obit, label %overflow, label %normal
 
 normal:
-  %t1 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum ) nounwind
+  %t1 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @ok, i32 0, i32 0), i32 %sum ) nounwind
   ret i1 true
 
 overflow:
-  %t2 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
+  %t2 = tail call i32 (i8*, ...) @printf( i8* getelementptr ([4 x i8], [4 x i8]* @no, i32 0, i32 0) ) nounwind
   ret i1 false
 }
 
index 7388bb40cbf678783f34c645507166ac6d4e9c51..34736ec0b5f57f182698d298e53154b65797dae8 100644 (file)
@@ -27,6 +27,6 @@ bb43:         ; preds = %bb42, %bb25
        %reg323 = phi double [ -1.000000e+00, %bb25 ], [ %reg317, %bb42 ]               ; <double> [#uses=1]
        %reg324 = phi double [ -1.000000e+00, %bb25 ], [ %reg318, %bb42 ]               ; <double> [#uses=1]
        %reg325 = phi double [ 1.000000e+00, %bb25 ], [ %reg319, %bb42 ]                ; <double> [#uses=1]
-       %reg609 = call i32 (i8*, ...)* @printf( i8* getelementptr ([44 x i8], [44 x i8]* @.LC12, i64 0, i64 0), double %reg325, double %reg324, double %reg323, double %reg322, double %reg321 )                ; <i32> [#uses=0]
+       %reg609 = call i32 (i8*, ...) @printf( i8* getelementptr ([44 x i8], [44 x i8]* @.LC12, i64 0, i64 0), double %reg325, double %reg324, double %reg323, double %reg322, double %reg321 )         ; <i32> [#uses=0]
        ret i32 0
 }
index 2f76acf86682992b6fa7bb7593d53b6830b40074..def687ed183f3fbaf1d588071333f75331bee114 100644 (file)
@@ -14,7 +14,7 @@ entry:
   br i1 %tobool, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
@@ -43,7 +43,7 @@ entry:
   br i1 %tobool, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
@@ -71,7 +71,7 @@ entry:
   br i1 %tobool1, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
@@ -100,7 +100,7 @@ entry:
   br i1 %tobool2, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
@@ -127,7 +127,7 @@ entry:
   br i1 %tobool, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
@@ -206,7 +206,7 @@ entry:
   br i1 %tobool, label %if.then, label %if.end
 
 if.then:                                          ; preds = %entry
-  %call = call i32 (...)* @f()
+  %call = call i32 (...) @f()
   store i32 %call, i32* %retval
   br label %return
 
index 3b03096384d5504de1448dd55894616d0835cd62..a2611f55dbdf5c4aa96b5a6d6bb1063a85470363 100644 (file)
@@ -12,22 +12,22 @@ declare i32 @printf(i8*, ...)
 define i32 @main() {
        %a = load double, double* @A            ; <double> [#uses=4]
        %a_fs = getelementptr [8 x i8], [8 x i8]* @a_fstr, i64 0, i64 0         ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_fs, double %a )            ; <i32>:1 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_fs, double %a )             ; <i32>:1 [#uses=0]
        %a_d2l = fptosi double %a to i64                ; <i64> [#uses=1]
        %a_ls = getelementptr [10 x i8], [10 x i8]* @a_lstr, i64 0, i64 0               ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_ls, i64 %a_d2l )           ; <i32>:2 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_ls, i64 %a_d2l )            ; <i32>:2 [#uses=0]
        %a_d2i = fptosi double %a to i32                ; <i32> [#uses=2]
        %a_ds = getelementptr [8 x i8], [8 x i8]* @a_dstr, i64 0, i64 0         ; <i8*> [#uses=3]
-       call i32 (i8*, ...)* @printf( i8* %a_ds, i32 %a_d2i )           ; <i32>:3 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_ds, i32 %a_d2i )            ; <i32>:3 [#uses=0]
        %a_d2sb = fptosi double %a to i8                ; <i8> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_ds, i8 %a_d2sb )           ; <i32>:4 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_ds, i8 %a_d2sb )            ; <i32>:4 [#uses=0]
        %a_d2i2sb = trunc i32 %a_d2i to i8              ; <i8> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_ds, i8 %a_d2i2sb )         ; <i32>:5 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_ds, i8 %a_d2i2sb )          ; <i32>:5 [#uses=0]
        %b = load i32, i32* @B          ; <i32> [#uses=2]
        %b_ds = getelementptr [8 x i8], [8 x i8]* @b_dstr, i64 0, i64 0         ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %b_ds, i32 %b )               ; <i32>:6 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %b_ds, i32 %b )                ; <i32>:6 [#uses=0]
        %b_i2d = sitofp i32 %b to double                ; <double> [#uses=1]
        %b_fs = getelementptr [8 x i8], [8 x i8]* @b_fstr, i64 0, i64 0         ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %b_fs, double %b_i2d )                ; <i32>:7 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %b_fs, double %b_i2d )         ; <i32>:7 [#uses=0]
        ret i32 0
 }
index 3b43db0cea830d03252e77c693c9cca4e318d4ce..837836fb29ca5759d5ae11d5aee052e547a73df2 100644 (file)
@@ -39,6 +39,6 @@ define i32 @main() {
         %dpi = fpext float %pi to double                ; <double> [#uses=1]
         %dfive = fpext float %five to double            ; <double> [#uses=1]
         %castFmt = getelementptr [44 x i8], [44 x i8]* @fmtArg, i64 0, i64 0               ; <i8*> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %castFmt, double %dsqrtTwo, double %dexp, double %dpi, double %dfive )     ; <i32>:1 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %castFmt, double %dsqrtTwo, double %dexp, double %dpi, double %dfive )     ; <i32>:1 [#uses=0]
         ret i32 0
 }
index dff47914be2454c537c8652617d92b37cda9ded3..a8147da744d67b5d55874133d67ba19ae2bf5490 100644 (file)
@@ -6,6 +6,6 @@ declare i32 @printf(i8*, ...)
 
 define i32 @main() {
         %s = getelementptr [7 x i8], [7 x i8]* @.str_1, i64 0, i64 0              ; <i8*> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %s )          ; <i32>:1 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %s )          ; <i32>:1 [#uses=0]
         ret i32 0
 }
index 1cf69de0d883d9cb2b0f393c6d5f24562ffde99c..4c0a654a87c24c5b1d4da04684fe4b7b83219894 100644 (file)
@@ -41,7 +41,7 @@ define i32 @main() {
         %ioff.upgrd.1 = zext i32 %ioff to i64           ; <i64> [#uses=1]
         %fptr = getelementptr %Results, %Results* %fval, i64 %ioff.upgrd.1                ; <%Results*> [#uses=1]
         %castFmt = getelementptr [39 x i8], [39 x i8]* @fmtArg, i64 0, i64 0               ; <i8*> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %castFmt, i32 %ioff, %Results* %fval, %Results* %fptr )               ; <i32>:1 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %castFmt, i32 %ioff, %Results* %fval, %Results* %fptr )               ; <i32>:1 [#uses=0]
         ret i32 0
 }
 
index 722b5643269228fba257d5cbb007df1ea8b207ea..915ba9fae516148ddc738ca2be4a06586289b6f5 100644 (file)
 
 ; function and integer
 define i32* @test_iAny(i32* %v) gc "statepoint-example" {
-       %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %v)
+       %tok = call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %v)
        %v-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 4)
        ret i32* %v-new
 }
 
 ; float
 define float* @test_fAny(float* %v) gc "statepoint-example" {
-       %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, float* %v)
+       %tok = call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, float* %v)
        %v-new = call float* @llvm.experimental.gc.relocate.p0f32(i32 %tok, i32 4, i32 4)
        ret float* %v-new
 }
 
 ; array of integers
 define [3 x i32]* @test_aAny([3 x i32]* %v) gc "statepoint-example" {
-       %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, [3 x i32]* %v)
+       %tok = call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, [3 x i32]* %v)
        %v-new = call [3 x i32]* @llvm.experimental.gc.relocate.p0a3i32(i32 %tok, i32 4, i32 4)
        ret [3 x i32]* %v-new
 }
 
 ; vector of integers
 define <3 x i32>* @test_vAny(<3 x i32>* %v) gc "statepoint-example" {
-       %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, <3 x i32>* %v)
+       %tok = call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, <3 x i32>* %v)
        %v-new = call <3 x i32>* @llvm.experimental.gc.relocate.p0v3i32(i32 %tok, i32 4, i32 4)
        ret <3 x i32>* %v-new
 }
@@ -43,7 +43,7 @@ define <3 x i32>* @test_vAny(<3 x i32>* %v) gc "statepoint-example" {
 
 ; struct
 define %struct.test* @test_struct(%struct.test* %v) gc "statepoint-example" {
-       %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, %struct.test* %v)
+       %tok = call i32 (i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, %struct.test* %v)
        %v-new = call %struct.test* @llvm.experimental.gc.relocate.p0struct.test(i32 %tok, i32 4, i32 4)
        ret %struct.test* %v-new
 }
index 553438a039330ec6220221f0a4c8fb25610ca68d..0507aba317b59a799587a87c42e411cc3832c04f 100644 (file)
@@ -7,12 +7,12 @@ declare i32 @printf(i8*, ...)
 define i32 @main() {
         %f = getelementptr [4 x i8], [4 x i8]* @.str_1, i64 0, i64 0              ; <i8*> [#uses=3]
         %d = add i32 1, 0               ; <i32> [#uses=3]
-        call i32 (i8*, ...)* @printf( i8* %f, i32 %d )          ; <i32>:1 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %f, i32 %d )          ; <i32>:1 [#uses=0]
         %e = add i32 38, 2              ; <i32> [#uses=2]
-        call i32 (i8*, ...)* @printf( i8* %f, i32 %e )          ; <i32>:2 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %f, i32 %e )          ; <i32>:2 [#uses=0]
         %g = add i32 %d, %d             ; <i32> [#uses=1]
         %h = add i32 %e, %g             ; <i32> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %f, i32 %h )          ; <i32>:3 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %f, i32 %h )          ; <i32>:3 [#uses=0]
         ret i32 0
 }
 
index b00229c32f0aa626bd12f7e02f02204a7556bdcf..93b158e103435dd25ab56ba8043bf82b67b04180 100644 (file)
@@ -22,8 +22,8 @@ define i32 @main() {
        %b = load double, double* @B            ; <double> [#uses=12]
        %a_s = getelementptr [8 x i8], [8 x i8]* @a_str, i64 0, i64 0           ; <i8*> [#uses=1]
        %b_s = getelementptr [8 x i8], [8 x i8]* @b_str, i64 0, i64 0           ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_s, double %a )             ; <i32>:1 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %b_s, double %b )             ; <i32>:2 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_s, double %a )              ; <i32>:1 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %b_s, double %b )              ; <i32>:2 [#uses=0]
        %add_r = fadd double %a, %b             ; <double> [#uses=1]
        %sub_r = fsub double %a, %b             ; <double> [#uses=1]
        %mul_r = fmul double %a, %b             ; <double> [#uses=1]
@@ -34,11 +34,11 @@ define i32 @main() {
        %mul_s = getelementptr [12 x i8], [12 x i8]* @mul_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %div_s = getelementptr [12 x i8], [12 x i8]* @div_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %rem_s = getelementptr [13 x i8], [13 x i8]* @rem_str, i64 0, i64 0             ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %add_s, double %add_r )               ; <i32>:3 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %sub_s, double %sub_r )               ; <i32>:4 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %mul_s, double %mul_r )               ; <i32>:5 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %div_s, double %div_r )               ; <i32>:6 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %rem_s, double %rem_r )               ; <i32>:7 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %add_s, double %add_r )                ; <i32>:3 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %sub_s, double %sub_r )                ; <i32>:4 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %mul_s, double %mul_r )                ; <i32>:5 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %div_s, double %div_r )                ; <i32>:6 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %rem_s, double %rem_r )                ; <i32>:7 [#uses=0]
        %lt_r = fcmp olt double %a, %b          ; <i1> [#uses=1]
        %le_r = fcmp ole double %a, %b          ; <i1> [#uses=1]
        %gt_r = fcmp ogt double %a, %b          ; <i1> [#uses=1]
@@ -51,11 +51,11 @@ define i32 @main() {
        %ge_s = getelementptr [13 x i8], [13 x i8]* @ge_str, i64 0, i64 0               ; <i8*> [#uses=1]
        %eq_s = getelementptr [13 x i8], [13 x i8]* @eq_str, i64 0, i64 0               ; <i8*> [#uses=1]
        %ne_s = getelementptr [13 x i8], [13 x i8]* @ne_str, i64 0, i64 0               ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %lt_s, i1 %lt_r )             ; <i32>:8 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %le_s, i1 %le_r )             ; <i32>:9 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %gt_s, i1 %gt_r )             ; <i32>:10 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %ge_s, i1 %ge_r )             ; <i32>:11 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %eq_s, i1 %eq_r )             ; <i32>:12 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %ne_s, i1 %ne_r )             ; <i32>:13 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %lt_s, i1 %lt_r )              ; <i32>:8 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %le_s, i1 %le_r )              ; <i32>:9 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %gt_s, i1 %gt_r )              ; <i32>:10 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %ge_s, i1 %ge_r )              ; <i32>:11 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %eq_s, i1 %eq_r )              ; <i32>:12 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %ne_s, i1 %ne_r )              ; <i32>:13 [#uses=0]
        ret i32 0
 }
index 2e176e48597b4a0c9945169aea6ebae2751bac25..a5c519c0c7fc4c6549c51a84ff02a0fd99555b35 100644 (file)
@@ -27,8 +27,8 @@ define i32 @main() {
        %b = load i32, i32* @B          ; <i32> [#uses=17]
        %a_s = getelementptr [8 x i8], [8 x i8]* @a_str, i64 0, i64 0           ; <i8*> [#uses=1]
        %b_s = getelementptr [8 x i8], [8 x i8]* @b_str, i64 0, i64 0           ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_s, i32 %a )                ; <i32>:1 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %b_s, i32 %b )                ; <i32>:2 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_s, i32 %a )         ; <i32>:1 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %b_s, i32 %b )         ; <i32>:2 [#uses=0]
        %add_r = add i32 %a, %b         ; <i32> [#uses=1]
        %sub_r = sub i32 %a, %b         ; <i32> [#uses=1]
        %mul_r = mul i32 %a, %b         ; <i32> [#uses=1]
@@ -39,11 +39,11 @@ define i32 @main() {
        %mul_s = getelementptr [12 x i8], [12 x i8]* @mul_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %div_s = getelementptr [12 x i8], [12 x i8]* @div_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %rem_s = getelementptr [13 x i8], [13 x i8]* @rem_str, i64 0, i64 0             ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %add_s, i32 %add_r )          ; <i32>:3 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %sub_s, i32 %sub_r )          ; <i32>:4 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %mul_s, i32 %mul_r )          ; <i32>:5 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %div_s, i32 %div_r )          ; <i32>:6 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %rem_s, i32 %rem_r )          ; <i32>:7 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %add_s, i32 %add_r )           ; <i32>:3 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %sub_s, i32 %sub_r )           ; <i32>:4 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %mul_s, i32 %mul_r )           ; <i32>:5 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %div_s, i32 %div_r )           ; <i32>:6 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %rem_s, i32 %rem_r )           ; <i32>:7 [#uses=0]
        %lt_r = icmp slt i32 %a, %b             ; <i1> [#uses=1]
        %le_r = icmp sle i32 %a, %b             ; <i1> [#uses=1]
        %gt_r = icmp sgt i32 %a, %b             ; <i1> [#uses=1]
@@ -56,12 +56,12 @@ define i32 @main() {
        %ge_s = getelementptr [13 x i8], [13 x i8]* @ge_str, i64 0, i64 0               ; <i8*> [#uses=1]
        %eq_s = getelementptr [13 x i8], [13 x i8]* @eq_str, i64 0, i64 0               ; <i8*> [#uses=1]
        %ne_s = getelementptr [13 x i8], [13 x i8]* @ne_str, i64 0, i64 0               ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %lt_s, i1 %lt_r )             ; <i32>:8 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %le_s, i1 %le_r )             ; <i32>:9 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %gt_s, i1 %gt_r )             ; <i32>:10 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %ge_s, i1 %ge_r )             ; <i32>:11 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %eq_s, i1 %eq_r )             ; <i32>:12 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %ne_s, i1 %ne_r )             ; <i32>:13 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %lt_s, i1 %lt_r )              ; <i32>:8 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %le_s, i1 %le_r )              ; <i32>:9 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %gt_s, i1 %gt_r )              ; <i32>:10 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %ge_s, i1 %ge_r )              ; <i32>:11 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %eq_s, i1 %eq_r )              ; <i32>:12 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %ne_s, i1 %ne_r )              ; <i32>:13 [#uses=0]
        %and_r = and i32 %a, %b         ; <i32> [#uses=1]
        %or_r = or i32 %a, %b           ; <i32> [#uses=1]
        %xor_r = xor i32 %a, %b         ; <i32> [#uses=1]
@@ -75,10 +75,10 @@ define i32 @main() {
        %xor_s = getelementptr [12 x i8], [12 x i8]* @xor_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %shl_s = getelementptr [13 x i8], [13 x i8]* @shl_str, i64 0, i64 0             ; <i8*> [#uses=1]
        %shr_s = getelementptr [13 x i8], [13 x i8]* @shr_str, i64 0, i64 0             ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %and_s, i32 %and_r )          ; <i32>:14 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %or_s, i32 %or_r )            ; <i32>:15 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %xor_s, i32 %xor_r )          ; <i32>:16 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %shl_s, i32 %shl_r )          ; <i32>:17 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %shr_s, i32 %shr_r )          ; <i32>:18 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %and_s, i32 %and_r )           ; <i32>:14 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %or_s, i32 %or_r )             ; <i32>:15 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %xor_s, i32 %xor_r )           ; <i32>:16 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %shl_s, i32 %shl_r )           ; <i32>:17 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %shr_s, i32 %shr_r )           ; <i32>:18 [#uses=0]
        ret i32 0
 }
index 0afc0e940f344c2160827343dc61f899878d2e9c..85b40c0e24f70f88dd9161fb3a46b899a78ee61e 100644 (file)
@@ -7,7 +7,7 @@ declare i32 @printf(i8*, ...)
 define i32 @main() {
         %f = getelementptr [4 x i8], [4 x i8]* @.str_1, i64 0, i64 0              ; <i8*> [#uses=1]
         %d = add i32 0, 0               ; <i32> [#uses=1]
-        %tmp.0 = call i32 (i8*, ...)* @printf( i8* %f, i32 %d )         ; <i32> [#uses=0]
+        %tmp.0 = call i32 (i8*, ...) @printf( i8* %f, i32 %d )         ; <i32> [#uses=0]
         ret i32 0
 }
 
index a08333d4815abc9a7310897f57ff143037c4062b..91c8147aaad91cd1430cabf827a8cc570548a695 100644 (file)
@@ -10,7 +10,7 @@ define i32 @main() {
        %a = load i32, i32* @A          ; <i32> [#uses=21]
        %a_s = getelementptr [8 x i8], [8 x i8]* @a_str, i64 0, i64 0           ; <i8*> [#uses=1]
        %a_mul_s = getelementptr [13 x i8], [13 x i8]* @a_mul_str, i64 0, i64 0         ; <i8*> [#uses=20]
-       call i32 (i8*, ...)* @printf( i8* %a_s, i32 %a )                ; <i32>:1 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_s, i32 %a )         ; <i32>:1 [#uses=0]
        %r_0 = mul i32 %a, 0            ; <i32> [#uses=1]
        %r_1 = mul i32 %a, 1            ; <i32> [#uses=1]
        %r_2 = mul i32 %a, 2            ; <i32> [#uses=1]
@@ -31,25 +31,25 @@ define i32 @main() {
        %r_17 = mul i32 %a, 17          ; <i32> [#uses=1]
        %r_18 = mul i32 %a, 18          ; <i32> [#uses=1]
        %r_19 = mul i32 %a, 19          ; <i32> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 0, i32 %r_0 )           ; <i32>:2 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 1, i32 %r_1 )           ; <i32>:3 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 2, i32 %r_2 )           ; <i32>:4 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 3, i32 %r_3 )           ; <i32>:5 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 4, i32 %r_4 )           ; <i32>:6 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 5, i32 %r_5 )           ; <i32>:7 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 6, i32 %r_6 )           ; <i32>:8 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 7, i32 %r_7 )           ; <i32>:9 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 8, i32 %r_8 )           ; <i32>:10 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 9, i32 %r_9 )           ; <i32>:11 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 10, i32 %r_10 )         ; <i32>:12 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 11, i32 %r_11 )         ; <i32>:13 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 12, i32 %r_12 )         ; <i32>:14 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 13, i32 %r_13 )         ; <i32>:15 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 14, i32 %r_14 )         ; <i32>:16 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 15, i32 %r_15 )         ; <i32>:17 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 16, i32 %r_16 )         ; <i32>:18 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 17, i32 %r_17 )         ; <i32>:19 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 18, i32 %r_18 )         ; <i32>:20 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 19, i32 %r_19 )         ; <i32>:21 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 0, i32 %r_0 )            ; <i32>:2 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 1, i32 %r_1 )            ; <i32>:3 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 2, i32 %r_2 )            ; <i32>:4 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 3, i32 %r_3 )            ; <i32>:5 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 4, i32 %r_4 )            ; <i32>:6 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 5, i32 %r_5 )            ; <i32>:7 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 6, i32 %r_6 )            ; <i32>:8 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 7, i32 %r_7 )            ; <i32>:9 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 8, i32 %r_8 )            ; <i32>:10 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 9, i32 %r_9 )            ; <i32>:11 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 10, i32 %r_10 )          ; <i32>:12 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 11, i32 %r_11 )          ; <i32>:13 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 12, i32 %r_12 )          ; <i32>:14 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 13, i32 %r_13 )          ; <i32>:15 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 14, i32 %r_14 )          ; <i32>:16 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 15, i32 %r_15 )          ; <i32>:17 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 16, i32 %r_16 )          ; <i32>:18 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 17, i32 %r_17 )          ; <i32>:19 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 18, i32 %r_18 )          ; <i32>:20 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 19, i32 %r_19 )          ; <i32>:21 [#uses=0]
        ret i32 0
 }
index 06f2b406ba408566a6a857fe0c2b38c0690f6ffb..4b60d759278ac93c0a17caa3fad8415b1d235807 100644 (file)
@@ -15,14 +15,14 @@ entry:
        %a_s = getelementptr [8 x i8], [8 x i8]* @a_str, i64 0, i64 0           ; <i8*> [#uses=1]
        %b_s = getelementptr [8 x i8], [8 x i8]* @b_str, i64 0, i64 0           ; <i8*> [#uses=1]
        %a_mul_s = getelementptr [13 x i8], [13 x i8]* @a_mul_str, i64 0, i64 0         ; <i8*> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_s, i32 %a )                ; <i32>:0 [#uses=0]
-       call i32 (i8*, ...)* @printf( i8* %b_s, i32 %b )                ; <i32>:1 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_s, i32 %a )         ; <i32>:0 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %b_s, i32 %b )         ; <i32>:1 [#uses=0]
        br label %shl_test
 
 shl_test:              ; preds = %shl_test, %entry
        %s = phi i32 [ 0, %entry ], [ %s_inc, %shl_test ]               ; <i32> [#uses=4]
        %result = mul i32 %a, %s                ; <i32> [#uses=1]
-       call i32 (i8*, ...)* @printf( i8* %a_mul_s, i32 %s, i32 %result )               ; <i32>:2 [#uses=0]
+       call i32 (i8*, ...) @printf( i8* %a_mul_s, i32 %s, i32 %result )                ; <i32>:2 [#uses=0]
        %s_inc = add i32 %s, 1          ; <i32> [#uses=1]
        %done = icmp eq i32 %s, 256             ; <i1> [#uses=1]
        br i1 %done, label %fini, label %shl_test
index af14f774e2b4426aea61165adba36bac1b03624c..56b3ec1df760d8dd8da9618508171e06bf628719 100644 (file)
@@ -15,15 +15,15 @@ entry:
         %a_s = getelementptr [8 x i8], [8 x i8]* @a_str, i64 0, i64 0             ; <i8*> [#uses=1]
         %b_s = getelementptr [8 x i8], [8 x i8]* @b_str, i64 0, i64 0             ; <i8*> [#uses=1]
         %a_shl_s = getelementptr [14 x i8], [14 x i8]* @a_shl_str, i64 0, i64 0            ; <i8*> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %a_s, i32 %a )                ; <i32>:0 [#uses=0]
-        call i32 (i8*, ...)* @printf( i8* %b_s, i32 %b )                ; <i32>:1 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %a_s, i32 %a )                ; <i32>:0 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %b_s, i32 %b )                ; <i32>:1 [#uses=0]
         br label %shl_test
 
 shl_test:               ; preds = %shl_test, %entry
         %s = phi i8 [ 0, %entry ], [ %s_inc, %shl_test ]                ; <i8> [#uses=4]
         %shift.upgrd.1 = zext i8 %s to i32              ; <i32> [#uses=1]
         %result = shl i32 %a, %shift.upgrd.1            ; <i32> [#uses=1]
-        call i32 (i8*, ...)* @printf( i8* %a_shl_s, i8 %s, i32 %result )                ; <i32>:2 [#uses=0]
+        call i32 (i8*, ...) @printf( i8* %a_shl_s, i8 %s, i32 %result )                ; <i32>:2 [#uses=0]
         %s_inc = add i8 %s, 1           ; <i8> [#uses=1]
         %done = icmp eq i8 %s, 32               ; <i1> [#uses=1]
         br i1 %done, label %fini, label %shl_test
index 41cecec07c07579f8f25473e36d259ad3d5d2386..ba98f622668300d49a334f1713f0937cb1812e0f 100644 (file)
@@ -35,6 +35,6 @@ define i32 @main() {
         %ge_s = getelementptr [13 x i8], [13 x i8]* @ge_str, i64 0, i64 0
         %eq_s = getelementptr [13 x i8], [13 x i8]* @eq_str, i64 0, i64 0
         %ne_s = getelementptr [13 x i8], [13 x i8]* @ne_str, i64 0, i64 0
-        call i32 (i8*, ...)* @printf( i8* %lt_s, i16 %val1 )
+        call i32 (i8*, ...) @printf( i8* %lt_s, i16 %val1 )
         ret i32 0
 }
index 8b5625c99a0e6a37bf48488f073ec41a2143c14b..1908b3c71f3f0c11dd6a6607cb6e5f6f81842661 100644 (file)
@@ -34,11 +34,11 @@ define i32 @main() {
         %ge_s = getelementptr [13 x i8], [13 x i8]* @ge_str, i64 0, i64 0
         %eq_s = getelementptr [13 x i8], [13 x i8]* @eq_str, i64 0, i64 0
         %ne_s = getelementptr [13 x i8], [13 x i8]* @ne_str, i64 0, i64 0
-        call i32 (i8*, ...)* @printf( i8* %lt_s, i1 %lt_r )
-        call i32 (i8*, ...)* @printf( i8* %le_s, i1 %le_r )
-        call i32 (i8*, ...)* @printf( i8* %gt_s, i1 %gt_r )
-        call i32 (i8*, ...)* @printf( i8* %ge_s, i1 %ge_r )
-        call i32 (i8*, ...)* @printf( i8* %eq_s, i1 %eq_r )
-        call i32 (i8*, ...)* @printf( i8* %ne_s, i1 %ne_r )
+        call i32 (i8*, ...) @printf( i8* %lt_s, i1 %lt_r )
+        call i32 (i8*, ...) @printf( i8* %le_s, i1 %le_r )
+        call i32 (i8*, ...) @printf( i8* %gt_s, i1 %gt_r )
+        call i32 (i8*, ...) @printf( i8* %ge_s, i1 %ge_r )
+        call i32 (i8*, ...) @printf( i8* %eq_s, i1 %eq_r )
+        call i32 (i8*, ...) @printf( i8* %ne_s, i1 %ne_r )
         ret i32 0
 }
index 7283ba461d00f6f247288c5a2ffe8878efc359e7..c40a6a957270e81fcb27b67962d6520fb28f8f06 100644 (file)
@@ -35,6 +35,6 @@ define i32 @main() {
         %ge_s = getelementptr [13 x i8], [13 x i8]* @ge_str, i64 0, i64 0
         %eq_s = getelementptr [13 x i8], [13 x i8]* @eq_str, i64 0, i64 0
         %ne_s = getelementptr [13 x i8], [13 x i8]* @ne_str, i64 0, i64 0
-        call i32 (i8*, ...)* @printf( i8* %lt_s, i8 %val1 )
+        call i32 (i8*, ...) @printf( i8* %lt_s, i8 %val1 )
         ret i32 0
 }
index 8967d573c9c910ed01e1f34c1ba0220fa21a8242..747a1362161dd53a4ba7e3ec98ffb27fded0c8f2 100644 (file)
@@ -76,7 +76,7 @@ if.end:                                           ; preds = %if.else, %if.then
   %arrayidx24 = getelementptr inbounds i8, i8* %tmp1, i32 24
   %7 = bitcast i8* %arrayidx24 to i32*
   %tmp25 = load i32, i32* %7, align 4
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i32 0, i32 0), i32 %tmp7, i32 %tmp10, i32 %tmp13, i32 %tmp16, i32 %tmp19, i32 %tmp22, i32 %tmp25) nounwind
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i32 0, i32 0), i32 %tmp7, i32 %tmp10, i32 %tmp13, i32 %tmp16, i32 %tmp19, i32 %tmp22, i32 %tmp25) nounwind
   ret i32 0
 }
 
index 4b5d09778d7980dbec085fea1edf300a14f0535d..d5ecaaeddc334e29ba950850f9eef4c44444f0cf 100644 (file)
@@ -60,7 +60,7 @@ if.then:                                          ; preds = %entry
   unreachable
 
 if.end:                                           ; preds = %entry
-  tail call void (...)* @f2() nounwind
+  tail call void (...) @f2() nounwind
   ret void
 }
 
index be9ba3e3ae96ac79832d023bab871e03da75a784..57076a4d4fcf7d09e24f678e73ec88e8290d22f3 100644 (file)
@@ -10,7 +10,7 @@ entry:
   %1 = load i32, i32* @y, align 4
   %and = and i32 %0, %1
 ; 16:  and     ${{[0-9]+}}, ${{[0-9]+}}
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %and)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i32 %and)
   ret i32 0
 }
 
index 920357d0a88abe74f2e496144ece263f24b86280..0ff9f5c22a840bb9010763e8daf7856db94510e0 100644 (file)
@@ -19,14 +19,14 @@ entry:
   %0 = atomicrmw add i32* %x, i32 1 seq_cst
   %add.i = add nsw i32 %0, 2
   %1 = load volatile i32, i32* %x, align 4
-  %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %add.i, i32 %1) nounwind
+  %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %add.i, i32 %1) nounwind
   %pair = cmpxchg i32* %x, i32 1, i32 2 seq_cst seq_cst
   %2 = extractvalue { i32, i1 } %pair, 0
   %3 = load volatile i32, i32* %x, align 4
-  %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %2, i32 %3) nounwind
+  %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %2, i32 %3) nounwind
   %4 = atomicrmw xchg i32* %x, i32 1 seq_cst
   %5 = load volatile i32, i32* %x, align 4
-  %call3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %4, i32 %5) nounwind
+  %call3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i32 %4, i32 %5) nounwind
 ; 16-LABEL: main:
 ; 16:  lw      ${{[0-9]+}}, %call16(__sync_synchronize)(${{[0-9]+}})
 ; 16:  lw      ${{[0-9]+}}, %call16(__sync_fetch_and_add_4)(${{[0-9]+}})
index 461c181ec959dbf08345c40a634e9e951b189de0..987032eaeb89ff18e8b5440e9b5e55f17d8170b9 100644 (file)
@@ -10,10 +10,10 @@ define i32 @main() {
 entry:
   %retval = alloca i32, align 4
   store i32 0, i32* %retval
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
   %call1 = call i8* @strcpy(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str1, i32 0, i32 0)) #3
   call void @llvm.clear_cache(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i8* getelementptr inbounds (i8, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0), i32 32)) #3
-  %call2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
+  %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i32 0, i32 0))
   ret i32 0
 }
 
index abb36011f8997b1eb92e9369032157b0d5b73953..ba3aeb598f50e00bb990cad2ecdceef1c951e6c5 100644 (file)
@@ -144,7 +144,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_1b* %0 to { i8 }*
   %2 = getelementptr { i8 }, { i8 }* %1, i32 0, i32 0
   %3 = load i8, i8* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_1b: 
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
@@ -158,7 +158,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_2b* %0 to { i16 }*
   %2 = getelementptr { i16 }, { i16 }* %1, i32 0, i32 0
   %3 = load i16, i16* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i16 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i16 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_2b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 48
@@ -175,7 +175,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 3, i32 0, i1 false)
   %3 = getelementptr { i24 }, { i24 }* %.coerce, i32 0, i32 0
   %4 = load i24, i24* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i24 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i24 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_3b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 40
@@ -191,7 +191,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_4b* %0 to { i32 }*
   %2 = getelementptr { i32 }, { i32 }* %1, i32 0, i32 0
   %3 = load i32, i32* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i32 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i32 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_4b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 32
@@ -208,7 +208,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 5, i32 0, i1 false)
   %3 = getelementptr { i40 }, { i40 }* %.coerce, i32 0, i32 0
   %4 = load i40, i40* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i40 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i40 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_5b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 24
@@ -225,7 +225,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 6, i32 0, i1 false)
   %3 = getelementptr { i48 }, { i48 }* %.coerce, i32 0, i32 0
   %4 = load i48, i48* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_6b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 16
@@ -242,7 +242,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 7, i32 0, i1 false)
   %3 = getelementptr { i56 }, { i56 }* %.coerce, i32 0, i32 0
   %4 = load i56, i56* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i56 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i56 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_7b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 8
@@ -256,7 +256,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_8b* %0 to { i64 }*
   %2 = getelementptr { i64 }, { i64 }* %1, i32 0, i32 0
   %3 = load i64, i64* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_8b:
  ; CHECK-NOT: dsll
@@ -275,7 +275,7 @@ entry:
   %4 = load i64, i64* %3, align 1
   %5 = getelementptr { i64, i8 }, { i64, i8 }* %.coerce, i32 0, i32 1
   %6 = load i8, i8* %5, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %4, i8 inreg %6)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %4, i8 inreg %6)
   ret void
  ; CHECK-LABEL: smallStruct_9b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
index 7da6ab1f7498a82d982855980a7af21b311e9ee9..74d3d859ed75336b269449025b20ccf56d141176 100644 (file)
@@ -78,7 +78,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_1b1s* %0 to { i32 }*
   %2 = getelementptr { i32 }, { i32 }* %1, i32 0, i32 0
   %3 = load i32, i32* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i32 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i32 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_1b1s:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 32
@@ -92,7 +92,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_1b1i* %0 to { i64 }*
   %2 = getelementptr { i64 }, { i64 }* %1, i32 0, i32 0
   %3 = load i64, i64* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_1b1i:
  ; CHECK-NOT: dsll
@@ -109,7 +109,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 6, i32 0, i1 false)
   %3 = getelementptr { i48 }, { i48 }* %.coerce, i32 0, i32 0
   %4 = load i48, i48* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_1b1s1b:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 16
@@ -125,7 +125,7 @@ entry:
   %1 = bitcast %struct.SmallStruct_1s1i* %0 to { i64 }*
   %2 = getelementptr { i64 }, { i64 }* %1, i32 0, i32 0
   %3 = load i64, i64* %2, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
   ret void
  ; CHECK-LABEL: smallStruct_1s1i:
  ; CHECK-NOT: dsll
@@ -142,7 +142,7 @@ entry:
   call void @llvm.memcpy.p0i8.p0i8.i64(i8* %1, i8* %2, i64 6, i32 0, i1 false)
   %3 = getelementptr { i48 }, { i48 }* %.coerce, i32 0, i32 0
   %4 = load i48, i48* %3, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i48 inreg %4)
   ret void
  ; CHECK-LABEL: smallStruct_3b1s:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 16
index f70b75f128b2745cbb81964d1e16e9144fb5e062..a4ac5e7bd8a6e63c4088beff71b54a3519ddf8d1 100644 (file)
@@ -146,7 +146,7 @@ entry:
   %33 = bitcast %struct.SmallStruct_1b* %8 to { i8 }*
   %34 = getelementptr { i8 }, { i8 }* %33, i32 0, i32 0
   %35 = load i8, i8* %34, align 1
-  call void (i8*, ...)* @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8 inreg %11, i8 inreg %14, i8 inreg %17, i8 inreg %20, i8 inreg %23, i8 inreg %26, i8 inreg %29, i8 inreg %32, i8 inreg %35)
+  call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8 inreg %11, i8 inreg %14, i8 inreg %17, i8 inreg %20, i8 inreg %23, i8 inreg %26, i8 inreg %29, i8 inreg %32, i8 inreg %35)
   ret void
  ; CHECK-LABEL: smallStruct_1b_x9:
  ; CHECK: dsll $[[R1:[0-9]+]], $[[R2:[0-9]+]], 56
index 6e783447bb0e2e79d037755718dd51feb214f517..97233328fd55580d18fcff41c729f1b2030cfea2 100644 (file)
@@ -34,7 +34,7 @@ define void @bar() {
 
     %val1 = load volatile double, double* @var
     %val2 = load volatile double, double* @var
-    call void (...)* @foo() nounwind
+    call void (...) @foo() nounwind
     store volatile double %val1, double* @var
     store volatile double %val2, double* @var
     ret void
index 748050c4d34b7069d941b79bbca7fce3a46323a8..542c5bf4462e1e0c1255148c983caafcdb668b69 100644 (file)
@@ -7,7 +7,7 @@ declare void @foo(...)
 
 define i8* @f1(i32 %offset, i8* %handler) {
 entry:
-  call void (...)* @foo()
+  call void (...) @foo()
   call void @llvm.eh.return.i32(i32 %offset, i8* %handler)
   unreachable
 
index 74a43231598cdb97546cbb075155f09e8d1ccb3c..2f8203d77c84079c4d3ac5b8ce47bc01c9cde829 100644 (file)
@@ -8,7 +8,7 @@ declare void @foo(...)
 
 define void @f1(i64 %offset, i8* %handler) {
 entry:
-  call void (...)* @foo()
+  call void (...) @foo()
   call void @llvm.eh.return.i64(i64 %offset, i8* %handler)
   unreachable
 
index 311b83015a5650ffa6506eca5dd41983fe5c2583..27d7094376e63737dfd1e36ede8945deaecd7383 100644 (file)
@@ -24,11 +24,11 @@ entry:
   br i1 %cmp, label %if.then, label %if.else
 
 if.then:                                          ; preds = %entry
-  tail call void (...)* @g0() nounwind
+  tail call void (...) @g0() nounwind
   br label %if.end
 
 if.else:                                          ; preds = %entry
-  tail call void (...)* @g1() nounwind
+  tail call void (...) @g1() nounwind
   br label %if.end
 
 if.end:                                           ; preds = %if.else, %if.then
@@ -57,11 +57,11 @@ entry:
   br i1 %cmp, label %if.then, label %if.else
 
 if.then:                                          ; preds = %entry
-  tail call void (...)* @g0() nounwind
+  tail call void (...) @g0() nounwind
   br label %if.end
 
 if.else:                                          ; preds = %entry
-  tail call void (...)* @g1() nounwind
+  tail call void (...) @g1() nounwind
   br label %if.end
 
 if.end: