llvm.org GIT mirror llvm / release_1 test / Feature / indirectcall2.ll
release_1

Tree @release_1 (Download .tar.gz)

indirectcall2.ll @release_1raw · history · blame

implementation

ulong "test"(ulong %X)
begin
	ret ulong %X
end

ulong "fib"(ulong %n)
begin
  %T = setlt ulong %n, 2       ; {bool}:0
  br bool %T, label %BaseCase, label %RecurseCase

RecurseCase:
  %result = call ulong %test(ulong %n)
  br label %BaseCase

BaseCase:
  %X = phi ulong [1, %0], [2, %RecurseCase]
  ret ulong %X
end