| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 35265
|
| |
|
|
|
|
| |
functional change with this patch.
llvm-svn: 34806
|
| |
|
|
|
|
|
| |
from a predicate and an APInt. This is removed from ConstantRange class
so that ConstantRange doesn't have to depend on lib/VMCore.
llvm-svn: 34760
|
| |
|
|
|
|
| |
solve a crash in -instcombine -debug that was hit while investigating PR1217
llvm-svn: 34544
|
| |
|
|
|
|
|
| |
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.
llvm-svn: 34300
|
| |
|
|
|
|
|
| |
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
llvm-svn: 34293
|
| |
|
|
|
|
|
|
| |
possible.
This speeds up bcreading by 1.5%.
llvm-svn: 34233
|
| |
|
|
| |
llvm-svn: 34228
|
| |
|
|
| |
llvm-svn: 34214
|
| |
|
|
| |
llvm-svn: 34213
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This feature is needed in order to support shifts of more than 255 bits
on large integer types. This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
shl i32 %X, 1
instead of
shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.
llvm-svn: 33776
|
| |
|
|
| |
llvm-svn: 33747
|
| |
|
|
|
|
| |
GEP constructors.
llvm-svn: 33726
|
| |
|
|
| |
llvm-svn: 33708
|
| |
|
|
|
|
| |
This allows us to eliminate many temporary vectors, and theirassociated malloc/free pairs.
llvm-svn: 33692
|
| |
|
|
| |
llvm-svn: 33519
|
| |
|
|
|
|
|
| |
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!
llvm-svn: 33415
|
| |
|
|
|
|
| |
Expose the previously hidden checkCast function as CastInst::castIsValid.
llvm-svn: 33282
|
| |
|
|
|
|
|
|
|
| |
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask.
This makes naming much more consistent. For example, there are now no longer any
instances of IntegerType that are not considered isInteger! :)
llvm-svn: 33225
|
| |
|
|
| |
llvm-svn: 33223
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement the arbitrary bit-width integer feature. The feature allows
integers of any bitwidth (up to 64) to be defined instead of just 1, 8,
16, 32, and 64 bit integers.
This change does several things:
1. Introduces a new Derived Type, IntegerType, to represent the number of
bits in an integer. The Type classes SubclassData field is used to
store the number of bits. This allows 2^23 bits in an integer type.
2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and
64-bit integers. These are replaced with just IntegerType which is not
a primitive any more.
3. Adjust the rest of LLVM to account for this change.
Note that while this incremental change lays the foundation for arbitrary
bit-width integers, LLVM has not yet been converted to actually deal with
them in any significant way. Most optimization passes, for example, will
still only deal with the byte-width integer types. Future increments
will rectify this situation.
llvm-svn: 33113
|
| |
|
|
| |
llvm-svn: 33076
|
| |
|
|
|
|
|
| |
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073
|
| |
|
|
|
|
| |
Change signed integer type names to unsigned equivalents.
llvm-svn: 32780
|
| |
|
|
|
|
|
|
| |
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.
llvm-svn: 32751
|
| |
|
|
|
|
| |
removed. All casting is now explicit and not inferred by VMCore.
llvm-svn: 32655
|
| |
|
|
|
|
|
|
| |
integer and floating point cast creation. createIntegerCast generates
ZExt/SExt, BitCast or Trunc. createFPCast generates FPExt, Bitcast, or
FPTrunc.
llvm-svn: 32456
|
| |
|
|
|
|
| |
as the right type. Use this to shorten some code.
llvm-svn: 32300
|
| |
|
|
|
|
| |
stack-space issue in the ppc bootstrap.
llvm-svn: 32244
|
| |
|
|
| |
llvm-svn: 32212
|
| |
|
|
|
|
|
| |
expressions. These will get used to reduce clutter as we replace various
calls to createInferredCast and getCast.
llvm-svn: 32191
|
| |
|
|
|
|
|
|
| |
CastInst and ConstantExpr that allow the signedness to be explicitly passed
in and reliance on signedness removed from getCastOpcode. These are
temporary measures useful during the conversion of inferred casts.
llvm-svn: 32164
|
| |
|
|
| |
llvm-svn: 32113
|
| |
|
|
|
|
|
|
|
|
| |
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.
llvm-svn: 31931
|
| |
|
|
|
|
|
|
| |
First in a series of patches to convert SetCondInst into ICmpInst and
FCmpInst using only two opcodes and having the instructions contain their
predicate value. Nothing uses these classes yet. More patches to follow.
llvm-svn: 31867
|
| |
|
|
|
|
|
|
| |
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
llvm-svn: 31542
|
| |
|
|
|
|
| |
Replace the REM instruction with UREM, SREM and FREM.
llvm-svn: 31369
|
| |
|
|
|
|
|
|
| |
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.
llvm-svn: 31195
|
| |
|
|
|
|
|
|
| |
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.
llvm-svn: 31063
|
| |
|
|
| |
llvm-svn: 30750
|
| |
|
|
| |
llvm-svn: 30452
|
| |
|
|
| |
llvm-svn: 30445
|
| |
|
|
|
|
| |
vtables for (e.g.) Instruction from being emitted into every .o file.
llvm-svn: 28898
|
| |
|
|
| |
llvm-svn: 28287
|
| |
|
|
| |
llvm-svn: 28210
|
| |
|
|
|
|
| |
the prototype of the called function.
llvm-svn: 28070
|
| |
|
|
| |
llvm-svn: 27713
|
| |
|
|
|
|
| |
check validity when instructions are created.
llvm-svn: 27523
|
| |
|
|
| |
llvm-svn: 27510
|
| |
|
|
| |
llvm-svn: 27124
|