summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert this test to .s form.Owen Anderson2010-11-012-697/+160
| | | | llvm-svn: 117900
* rename InstructionInfo -> MatchableInfo since it nowChris Lattner2010-11-011-65/+74
| | | | | | | | represents InstAliases as well. Rename isAssemblerInstruction -> Validate since that is what it does (modulo the ARM $lane hack). llvm-svn: 117899
* refactor initialization of InstructionInfo to be sharable betweenChris Lattner2010-11-011-27/+46
| | | | | | | instructions and InstAliases. Start creating InstructionInfo's for Aliases. llvm-svn: 117898
* make the asm matcher emitter reject instructions that have commentsChris Lattner2010-11-013-41/+32
| | | | | | | in their asmstring. Fix the two x86 "NOREX" instructions that have them. If these comments are important, the instlowering stuff can print them. llvm-svn: 117897
* Fixed StackFrame::GetVariableList to add globalSean Callanan2010-11-011-12/+17
| | | | | | | variables to the list of found variables if they have not yet been added. llvm-svn: 117896
* refactor InstructionInfo to not have a pointer to CodeGenInstructionChris Lattner2010-11-011-88/+89
| | | | | | | member, and make isAssemblerInstruction() a method (pushing some code around inside it). llvm-svn: 117895
* define a new CodeGenInstAlias. It has an asmstring and operand list for now,Chris Lattner2010-11-013-1/+37
| | | | | | todo: the result field. llvm-svn: 117894
* factor the operand list (and related fields/operations) out of Chris Lattner2010-11-0113-301/+340
| | | | | | CodeGenInstruction into its own helper class. No functionality change. llvm-svn: 117893
* avoid needless throw/catch/rethrow, stringref'ize some simple stuff.Chris Lattner2010-11-013-10/+7
| | | | llvm-svn: 117892
* eliminate the old InstFormatName which is always "AsmString",Chris Lattner2010-11-015-15/+6
| | | | | | simplify CodeGenInstruction. No functionality change. llvm-svn: 117891
* all predicates on an MnemonicAlias must be AssemblerPredicates.Chris Lattner2010-11-011-6/+10
| | | | llvm-svn: 117890
* change the singleton register handling code to be based on Record*'sChris Lattner2010-11-011-48/+41
| | | | | | instead of strings, simplifying it. llvm-svn: 117889
* Give AsmMatcherInfo a CodeGenTarget, which simplifies a bunch ofChris Lattner2010-11-011-83/+92
| | | | | | | | | argument passing. Consolidate all SingletonRegister detection and handling into a new InstructionInfo::getSingletonRegisterForToken method instead of having it scattered about. No change in generated .inc files. llvm-svn: 117888
* Only apply -fvisibility-inlines-hidden to definitions. ApparentlyJohn McCall2010-11-012-3/+24
| | | | | | | | isInlined() just gives meaningless results for non-definitions. Fixes rdar://problem/8614470 llvm-svn: 117887
* move FlattenVariants out of AsmMatcherEmitter into a sharedChris Lattner2010-11-014-121/+98
| | | | | | | | CodeGenInstruction::FlattenAsmStringVariants method. Use it to simplify the code in AsmWriterInst, which now no longer needs to worry about variants. llvm-svn: 117886
* add a FIXME, $lane in ARM is an issue that needs to be resolved beforeChris Lattner2010-11-011-1/+2
| | | | | | this can start rejecting instructions. llvm-svn: 117885
* reject instructions that contain a \n in their asmstring. MarkChris Lattner2010-11-013-15/+23
| | | | | | | various X86 and ARM instructions that are bitten by this as isCodeGenOnly, as they are. llvm-svn: 117884
* Get rid of more calls to getBaseClassOffsetInBits.Anders Carlsson2010-11-011-10/+5
| | | | llvm-svn: 117883
* Port over a couple of getVBaseClassOffsetInBits call sites to use ↵Anders Carlsson2010-10-312-19/+19
| | | | | | getVBaseClassOffset instead. llvm-svn: 117882
* Rename getBaseClassOffset to getBaseClassOffsetInBits and introduce a ↵Anders Carlsson2010-10-3114-65/+87
| | | | | | getBaseClassOffset which returns the offset in CharUnits. Do the same thing for getVBaseClassOffset. llvm-svn: 117881
* Add a specialization for 'long', a hole in the set of fundamentalChandler Carruth2010-10-311-0/+14
| | | | | | | | | specializations provided here. This is a little annoying because its size changes from platform to platform. If possible, I may follow up with a patch that uses standard constants to simplify much of this, but assuming for now that was avoided for a reason. llvm-svn: 117880
* Revert r117876 for now, it's causing more testsuite failures.Eric Christopher2010-10-311-2/+0
| | | | llvm-svn: 117879
* Start converting over the RecordLayoutBuilder next.Anders Carlsson2010-10-311-20/+15
| | | | llvm-svn: 117878
* EmptyObjectMap now uses CharUnits wherever possible.Anders Carlsson2010-10-313-65/+65
| | | | llvm-svn: 117877
* Disable the peephole optimizer until 186.crafty on armv6 is fixed. This is whatBill Wendling2010-10-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looks like is happening: Without the peephole optimizer: (1) sub r6, r6, #32 orr r12, r12, lr, lsl r9 orr r2, r2, r3, lsl r10 (x) cmp r6, #0 ldr r9, LCPI2_10 ldr r10, LCPI2_11 (2) sub r8, r8, #32 (a) movge r12, lr, lsr r6 (y) cmp r8, #0 LPC2_10: ldr lr, [pc, r10] (b) movge r2, r3, lsr r8 With the peephole optimizer: ldr r9, LCPI2_10 ldr r10, LCPI2_11 (1*) subs r6, r6, #32 (2*) subs r8, r8, #32 (a*) movge r12, lr, lsr r6 (b*) movge r2, r3, lsr r8 (1) is used by (x) for the conditional move at (a). (2) is used by (y) for the conditional move at (b). After the peephole optimizer, these the flags resulting from (1*) are ignored and only the flags from (2*) are considered for both conditional moves. llvm-svn: 117876
* More CharUnits conversion.Anders Carlsson2010-10-311-22/+44
| | | | llvm-svn: 117875
* More CharUnits conversion.Anders Carlsson2010-10-312-145/+28
| | | | llvm-svn: 117874
* Use CharUnits in the EmptyClassOffsets map.Anders Carlsson2010-10-311-3/+12
| | | | llvm-svn: 117873
* Add a DenseMapInfo specializaiton for CharUnits.Anders Carlsson2010-10-311-0/+35
| | | | llvm-svn: 117872
* Correct typos and whitespace, spotted by Nico Weber!Nick Lewycky2010-10-311-3/+3
| | | | llvm-svn: 117871
* Fix typo spotted by Nico Weber.Nick Lewycky2010-10-311-1/+1
| | | | llvm-svn: 117870
* Baby steps towards using only CharUnits for base class offsets in ↵Anders Carlsson2010-10-312-9/+17
| | | | | | ASTRecordLayout. Start by storing the offsets in CharUnits in the ASTRecordLayout object. llvm-svn: 117869
* Teach the constant expr evaluator about derived-to-base casts when no ↵Anders Carlsson2010-10-313-0/+53
| | | | | | virtual bases are involved. Fixes PR5974. llvm-svn: 117868
* Attach a GCModuleInfo to a MachineFunction.Nicolas Geoffray2010-10-313-4/+11
| | | | llvm-svn: 117867
* Make sure darwin-debug gets installed in /Developer/usr/bin instead ofGreg Clayton2010-10-311-3/+3
| | | | | | /usr/local/bin. llvm-svn: 117866
* Bumped lldb Xcode project version to 28 for lldb-28.Greg Clayton2010-10-312-10/+10
| | | | llvm-svn: 117865
* Fixed an include so case sensitive builders can build.Greg Clayton2010-10-311-1/+1
| | | | llvm-svn: 117864
* fix a crash on:Chris Lattner2010-10-311-1/+2
| | | | | | | | | | | | let Constraints = "$val = $dst", Defs = [EFLAGS] in, isCodeGenOnly = 1 { we now get: X86InstrCompiler.td:653:52: error: Expected class, def, defm, multiclass or let definition let Constraints = "$val = $dst", Defs = [EFLAGS] in, isCodeGenOnly = 1 { ^ llvm-svn: 117863
* fix the !eq operator in tblgen to return a bit instead of an int.Chris Lattner2010-10-315-17/+8
| | | | | | | | Use this to make the X86 and ARM targets set isCodeGenOnly=1 automatically for their instructions that have Format=Pseudo, resolving a hack in tblgen. llvm-svn: 117862
* two changes: make the asmmatcher generator ignore ARM pseudos properly,Chris Lattner2010-10-315-17/+35
| | | | | | | and make it a hard error for instructions to not have an asm string. These instructions should be marked isCodeGenOnly. llvm-svn: 117861
* reapply r117858 with apparent editor malfunction fixed (somehow I Chris Lattner2010-10-316-39/+44
| | | | | | got a dulicated line). llvm-svn: 117860
* revert r117858 while I check out a failure I missed.Chris Lattner2010-10-316-47/+40
| | | | llvm-svn: 117859
* the asm matcher can't handle operands with modifiers (like ${foo:bar}).Chris Lattner2010-10-316-40/+47
| | | | | | | | | | | Instead of silently ignoring these instructions, emit a hard error and force the target author to either refactor the target or mark the instruction 'isCodeGenOnly'. Mark a few instructions in ARM and MBlaze as isCodeGenOnly the are doing this. llvm-svn: 117858
* sketch out the planned instruction alias mechanism, add some comments aboutChris Lattner2010-10-312-0/+26
| | | | | | how the push/pop mnemonic aliases are wrong. llvm-svn: 117857
* Factorize the duplicated logic for choosing the right argumentDuncan Sands2010-10-314-56/+36
| | | | | | | calling convention out of the fast and normal ISel files, and into the calling convention TD file. llvm-svn: 117856
* Remove CCAssignFnForRet from X86 FastISel in favour of RetCC_X86,Duncan Sands2010-10-311-16/+1
| | | | | | | which has the same logic specified in the CallingConv TD file. This brings FastISel in line with the standard X86 ISel. llvm-svn: 117855
* Explain the return value of CCAssignFn.Duncan Sands2010-10-311-1/+1
| | | | llvm-svn: 117854
* Make Clang static analyzer skip function template definitions. This fixes ↵Zhanyong Wan2010-10-312-2/+51
| | | | | | Clang PR 8426, 8427, & 8433. Reviewed by Ted Kremenek and Doug Gregor. llvm-svn: 117853
* Bumped version in Xcode project to lldb-27, and debugserver to debugserver-115.Greg Clayton2010-10-313-16/+16
| | | | llvm-svn: 117852
* Cleaned up the API logging a lot more to reduce redundant information and Greg Clayton2010-10-3140-691/+651
| | | | | | | | | keep the file size a bit smaller. Exposed SBValue::GetExpressionPath() so SBValue users can get an expression path for their values. llvm-svn: 117851
OpenPOWER on IntegriCloud