llvm.org GIT mirror llvm / 72ed200
Some clarifications suggested by Jon Sargeant git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49963 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 12 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
20162016
20172017
Semantics:
20182018
2019

The 'unwind' intrinsic causes execution of the current function to

2019

The 'unwind' instruction causes execution of the current function to

20202020 immediately halt. The dynamic call stack is then searched for the first
20212021 href="#i_invoke">invoke instruction on the call stack. Once found,
20222022 execution continues at the "exceptional" destination block specified by the
23362336
Arguments:
23372337
23382338

Both arguments to the 'shl' instruction must be the same

2339 href="#t_integer">integer type.

2339 href="#t_integer">integer type. 'var2' is treated as an
2340 unsigned value.

23402341
23412342
Semantics:
23422343
23652366
23662367
Arguments:
23672368

Both arguments to the 'lshr' instruction must be the same

2368 integer type.

2369 integer type. 'var2' is treated as an
2370 unsigned value.

23692371
23702372
Semantics:
23712373
23992401
24002402
Arguments:
24012403

Both arguments to the 'ashr' instruction must be the same

2402 integer type.

2404 integer type. 'var2' is treated as an
2405 unsigned value.

24032406
24042407
Semantics:
24052408

This instruction always performs an arithmetic shift right operation,

27952798
Semantics:
27962799
27972800

Memory is allocated using the system "malloc" function, and

2798 a pointer is returned. Allocating zero bytes is undefined. The result is null
2799 if there is insufficient memory available.

2801 a pointer is returned. The result of a zero byte allocattion is undefined. The
2802 result is null if there is insufficient memory available.

28002803
28012804
Example:
28022805
28382841
Semantics:
28392842
28402843

Access to the memory pointed to by the pointer is no longer defined

2841 after this instruction executes. If the pointer is null, the result is
2844 after this instruction executes. If the pointer is null, the behavior is
28422845 undefined.

28432846
28442847
Example:
28832886
28842887
Semantics:
28852888
2886

Memory is allocated; a pointer is returned. 'alloca'd

2889

Memory is allocated; a pointer is returned. The operation is undefiend if

2890 there is insufficient stack space for the allocation. 'alloca'd
28872891 memory is automatically released when the function returns. The 'alloca'
28882892 instruction is commonly used to represent automatic variables that must
28892893 have an address available. When the function returns (either with the