summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
* [lib/Object] Rename elf_hash to hashSysV.Davide Italiano2016-11-071-1/+1
| | | | | | This is more clear, as we have also GNU hash these days.. llvm-svn: 286157
* Use -fsanitize-recover instead of -mllvm -msan-keep-going.Evgeniy Stepanov2016-11-071-1/+2
| | | | | | | | | | | | Summary: Use -fsanitize-recover instead of -mllvm -msan-keep-going. Reviewers: eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26352 llvm-svn: 286145
* Disallow StringRef assignment from temporary std::strings.Jordan Rose2016-11-071-0/+9
| | | | | | | | | | | | | | | | | | | | | Similar to r283798, this prevents accidentally referring to temporary storage that goes out of scope by the end of the statement: someStringRef = getStringByValue(); someStringRef = (Twine("-") + otherString).str(); Note that once again the constructor still has this problem: StringRef someStringRef = getStringByValue(); because once again we occasionally rely on this in calls: takesStringRef(getStringByValue()); takesStringRef(Twine("-") + otherString); Still, it's a step. llvm-svn: 286139
* [AVX-512] Remove masked pmovzx/pmovsx builtins and autoupgrade them to ↵Craig Topper2016-11-071-114/+0
| | | | | | | | selects and native zext/sext. This mostly reuses earlier autoupgrade support for the sse and avx equivalents. Just needed to add the code to add the select. llvm-svn: 286092
* [X86] Remove GCCBuiltins from cvtsi2ss/cvtsi2sd/cvtss2sd intrinsics as they ↵Craig Topper2016-11-071-13/+13
| | | | | | aren't used by clang. Add TODOs to remove these and some other unused intrinsics. llvm-svn: 286091
* [AVX-512] Remove 128/256 masked pshufb intrinsics. Autoupgrade them to ↵Craig Topper2016-11-071-12/+0
| | | | | | legacy intrinsics and a select. llvm-svn: 286089
* [RandomNumberGenerator] Remove MSVC 2013 compatibility hack.Davide Italiano2016-11-061-12/+2
| | | | llvm-svn: 286083
* [AVX-512] Remove intrinsics for 128/256-bit masked variable shift. Instead ↵Craig Topper2016-11-061-30/+0
| | | | | | upgrade them to a select and the older AVX2 intrinsic. llvm-svn: 286073
* [AVX-512] Remove intrinsics for 128/256-bit masked shift by immediate. ↵Craig Topper2016-11-061-48/+0
| | | | | | Instead upgrade them to a select and the older SSE/AVX2 intrinsic. llvm-svn: 286072
* [AVX-512] Remove intrinsics for 128/256-bit masked shift by single element ↵Craig Topper2016-11-061-48/+0
| | | | | | in xmm. Instead upgrade them to a select and the older SSE/AVX2 intrinsic. llvm-svn: 286070
* Kill deprecated attribute APIAmaury Sechet2016-11-062-94/+0
| | | | | | | | | | | | | | | Summary: This kill various depreacated API related to attribute : - The deprecated C API attribute based on LLVMAttribute enum. - The Raw attribute set format (planned to be removed in 4.0). Reviewers: bkramer, echristo, mehdi_amini, void Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D23039 llvm-svn: 286062
* [APFloat] Make functions that produce APFloaat objects use correct semantics.Tim Shen2016-11-061-26/+19
| | | | | | | | | | | | | | | | | Summary: Fixes PR30869. In D25977 I meant to change all functions that care about lifetime. I changed constructors, factory functions, but I missed member/free functions that return new instances. This patch changes them. Reviewers: hfinkel, kbarton, echristo, joerg Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D26269 llvm-svn: 286060
* Append a (uint32_t)pad into arm_thread_state64_t. Implicit pad isn't ↵NAKAMURA Takumi2016-11-041-0/+1
| | | | | | appended on i686. llvm-svn: 286027
* [ExecutionEngine] Document the insane ownership contract forLang Hames2016-11-041-2/+6
| | | | | | ExecutionEngine::removeModule. llvm-svn: 286026
* Fix 24560: assembler does not share constant pool for same constantsWeiming Zhao2016-11-041-0/+2
| | | | | | | | | | | | Summary: This patch returns the same label if the CP entry with the same value has been created. Reviewers: eli.friedman, rengolin, jmolloy Subscribers: majnemer, jmolloy, llvm-commits Differential Revision: https://reviews.llvm.org/D25804 llvm-svn: 286006
* Add a missing return to the move assignment operator forChandler Carruth2016-11-041-0/+1
| | | | | | | | | | | | | | SequenceNumberManager. Sadly, we don't have any unittests for this class because it is a private class. Since it seems to have a nice isolated and testable interface, it'd be great to extract it to a detail namespace and write unit tests for it as then we could catch issues. I'll probably pester Lang about that or some alternative refactoring. This was noticed by PVS-Studio. llvm-svn: 285990
* [Support] Fix a segfault in llvm::Expected.Lang Hames2016-11-031-2/+2
| | | | | | | | | This fixes a mismatch between the declared error_type and the type used with the placement new that initializes the field. Patch by Yichao Yu. llvm-svn: 285970
* Add support for the ARM_THREAD_STATE64 andKevin Enderby2016-11-031-0/+22
| | | | | | | | | | | | | in llvm-objdump for Mach-O files add the printing of the ARM_THREAD_STATE64 in the same format as otool-classic(1) on darwin. To do this the 64-bit ARM general tread state needed to be defined in include/llvm/Support/MachO.h . rdar://28985800 llvm-svn: 285967
* Don't error in the ELFFile constructor.Rafael Espindola2016-11-032-40/+22
| | | | | | | | | | | | All error checking now happens when the information is needed. The only thing left is the minimum size of the buffer and that can be just a precondition. I will add an ErrorOr create method in a followup commit. Also don't store a pointer to the Header, since it is just a trivial cast. llvm-svn: 285961
* Add DWARF debug info support for C++11 inline namespaces.Adrian Prantl2016-11-033-19/+25
| | | | | | | | | This implements the DWARF 5 DW_AT_export_symbols feature: http://dwarfstd.org/ShowIssue.php?issue=141212.1 <rdar://problem/18616046> llvm-svn: 285959
* [ADT] IntervalMap: fix setStart and setStopMichael LeMay2016-11-031-2/+13
| | | | | | | | | | | | | | | | Summary: These functions currently require that the new closed interval has a length of at least 2. They also currently permit empty half-open intervals. This patch defines nonEmpty in each traits structure and uses it to correct the implementations of setStart and setStop. Reviewers: stoklund, chandlerc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26064 llvm-svn: 285957
* Remove the last use of report_fatal_error from ELF.h.Rafael Espindola2016-11-031-10/+4
| | | | llvm-svn: 285955
* PDB: Fix some APIs to avoid use-after-freesJustin Bogner2016-11-033-6/+3
| | | | | | | The buffer is already owned by the PDBFile for all of these APIs, so don't pass it in separately. llvm-svn: 285953
* Add error handling to getEntry.Rafael Espindola2016-11-031-8/+12
| | | | | | Issue found by inspection. llvm-svn: 285951
* Replace another report_fatal_error with an ErrorOr.Rafael Espindola2016-11-032-7/+17
| | | | llvm-svn: 285944
* Replace a report_fatal_error with an ErrorOr.Rafael Espindola2016-11-031-2/+2
| | | | llvm-svn: 285942
* Delete dead code.Rafael Espindola2016-11-031-10/+3
| | | | llvm-svn: 285940
* Delete dead code.Rafael Espindola2016-11-031-12/+0
| | | | llvm-svn: 285935
* Add lower level versions of some functions.Rafael Espindola2016-11-031-6/+31
| | | | | | | This adds versions of getSectionIndex, getSection and getSymbol that instead of a Elf_Shdr take the content of that section. llvm-svn: 285932
* Move function out of line. NFC.Rafael Espindola2016-11-031-9/+13
| | | | llvm-svn: 285929
* Inline function into only use.Rafael Espindola2016-11-031-14/+5
| | | | llvm-svn: 285928
* Return existing error code.Rafael Espindola2016-11-031-1/+1
| | | | | | Should fix the -Werror bots. llvm-svn: 285921
* Move a free function out of ELFFile.Rafael Espindola2016-11-031-16/+15
| | | | llvm-svn: 285920
* Split out a getSectionIndex.Rafael Espindola2016-11-031-8/+20
| | | | | | That code is currently duplicated in lld. llvm-svn: 285915
* replace a report_fatal_error with a ErrorOr.Rafael Espindola2016-11-031-12/+16
| | | | llvm-svn: 285910
* Replace a report_fatal_error with an ErrorOr.Rafael Espindola2016-11-032-9/+12
| | | | llvm-svn: 285905
* Split getStringTableForSymtab.Rafael Espindola2016-11-031-1/+15
| | | | | | For use in cases where we already have the section table. llvm-svn: 285903
* Split getSHNDXTable in two.Rafael Espindola2016-11-031-1/+14
| | | | | | Some clients already have the section table available. llvm-svn: 285898
* [Object/ELF] - Make getSymbol() return Error.George Rimar2016-11-032-2/+4
| | | | | | | | | That is consistent with other methods around and helps to handle error on a caller side. Differential revision: https://reviews.llvm.org/D26247 llvm-svn: 285886
* Expandload and Compressstore intrinsicsElena Demikhovsky2016-11-032-3/+16
| | | | | | | | 2 new intrinsics covering AVX-512 compress/expand functionality. This implementation includes syntax, DAG builder, operation lowering and tests. Does not include: handling of illegal data types, codegen prepare pass and the cost model. llvm-svn: 285876
* Split getSection in two.Rafael Espindola2016-11-031-8/+18
| | | | | | This will allow avoiding repeated error checking in a few cases. llvm-svn: 285874
* Simplify some typedefs. NFC.Rafael Espindola2016-11-022-16/+15
| | | | llvm-svn: 285863
* DCE math library calls with a constant operand.Eli Friedman2016-11-021-0/+5
| | | | | | | | | | | On platforms which use -fmath-errno, math libcalls without any uses require some extra checks to figure out if they are actually dead. Fixes https://llvm.org/bugs/show_bug.cgi?id=30464 . Differential Revision: https://reviews.llvm.org/D25970 llvm-svn: 285857
* [lli/COFF] Set the correct alignment for common symbolsDavide Italiano2016-11-021-0/+1
| | | | | | | | | | Otherwise we set it always to zero, which is not correct, and we assert inside alignTo (Assertion failed: Align != 0u && "Align can't be 0."). Differential Revision: https://reviews.llvm.org/D26173 llvm-svn: 285841
* Fix build due to missing definition.Zachary Turner2016-11-021-1/+1
| | | | llvm-svn: 285837
* Add CodeViewRecordIO for reading and writing.Zachary Turner2016-11-026-504/+409
| | | | | | | | | | | | | | | Using a pattern similar to that of YamlIO, this allows us to have a single codepath for translating codeview records to and from serialized byte streams. The current patch only hooks this up to the reading of CodeView type records. A subsequent patch will hook it up for writing of CodeView type records, and then a third patch will hook up the reading and writing of CodeView symbols. Differential Revision: https://reviews.llvm.org/D26040 llvm-svn: 285836
* [ARM][MC] Cleanup ARM Target Assembly ParserNirav Dave2016-11-021-1/+22
| | | | | | | | | | | | | | Summary: Correctly parse end-of-statement tokens and handle preprocessor end-of-line comments in ARM assembly processor. Reviewers: rnk, majnemer Subscribers: aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D26152 llvm-svn: 285830
* Simplify control flow in the the DWARF expression compilerAdrian Prantl2016-11-021-0/+2
| | | | | | by refactoring common code into a DwarfExpressionCursor wrapper. llvm-svn: 285827
* Simplify typedefs. NFC.Rafael Espindola2016-11-021-15/+14
| | | | llvm-svn: 285819
* Inline a version of getSectionStringTable into the only use.Rafael Espindola2016-11-021-10/+4
| | | | llvm-svn: 285817
OpenPOWER on IntegriCloud