llvm/lib/IR
Serge Guelton ec124b3a6f Turn some C-style vararg into variadic templates
Module::getOrInsertFunction is using C-style vararg instead of
variadic templates.

From a user prospective, it forces the use of an annoying nullptr
to mark the end of the vararg, and there's not type checking on the
arguments. The variadic template is an obvious solution to both
issues.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299925 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-11 08:36:52 +00:00
..
AsmWriter.cpp Reland "[IR] Make AttributeSetNode public, avoid temporary AttributeList copies" 2017-04-10 23:31:05 +00:00
AttributeImpl.h [IR] Sink some AttributeListImpl methods out of headers NFC 2017-04-11 00:16:00 +00:00
Attributes.cpp [IR] Sink some AttributeListImpl methods out of headers NFC 2017-04-11 00:16:00 +00:00
AttributesCompatFunc.td
AutoUpgrade.cpp Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
BasicBlock.cpp [IR] Share implementation for pairs of const and non-const methods using const_cast. NFCI 2017-03-27 05:46:58 +00:00
CMakeLists.txt
Comdat.cpp
ConstantFold.cpp Fix constant folding of fp2int to large integers 2017-03-19 16:50:25 +00:00
ConstantFold.h
ConstantRange.cpp [ConstantRange] Add setSizeSmallerThanOf method. 2017-03-20 06:33:07 +00:00
Constants.cpp [IR] Fix a typo in a comment. NFC 2017-04-11 06:41:55 +00:00
ConstantsContext.h
Core.cpp Remove AttributeSetNode::get(AttributeList, unsigned) and sink constructor 2017-04-10 23:46:08 +00:00
DataLayout.cpp Allow DataLayout to specify addrspace for allocas. 2017-04-10 22:27:50 +00:00
DebugInfo.cpp Teach stripNonLineTableDebugInfo() to remap DILocations in !llvm.loop nodes. 2017-03-30 20:10:56 +00:00
DebugInfoMetadata.cpp [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
DebugLoc.cpp
DiagnosticInfo.cpp [Stack Protection] Add diagnostic information for why stack protection was applied to a function 2017-02-28 16:02:37 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp Revert "Debug Info: Add basic support for external types references." 2017-03-13 22:56:14 +00:00
Dominators.cpp
Function.cpp Rename AttributeSet to AttributeList 2017-03-21 16:57:19 +00:00
GCOV.cpp
Globals.cpp [IR] Implement pairs of non-const and const methods using the const version instead of the non-const version. NFCI 2017-03-27 05:47:03 +00:00
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp [IR] Add AllowContract to FastMathFlags 2017-03-28 20:11:52 +00:00
Instructions.cpp Turn some C-style vararg into variadic templates 2017-04-11 08:36:52 +00:00
IntrinsicInst.cpp
IRBuilder.cpp Add address space mangling to lifetime intrinsics 2017-04-10 20:18:21 +00:00
IRPrintingPasses.cpp Implement getPassName() for IR printing passes. 2017-03-10 07:09:20 +00:00
LegacyPassManager.cpp
LLVMBuild.txt
LLVMContext.cpp Add !associated metadata. 2017-03-17 22:17:24 +00:00
LLVMContextImpl.cpp Rename AttributeSet to AttributeList 2017-03-21 16:57:19 +00:00
LLVMContextImpl.h Rename AttributeSet to AttributeList 2017-03-21 16:57:19 +00:00
Mangler.cpp Move llvm::emitLinkerFlagsForGlobalCOFF() to Mangler. 2017-03-31 04:46:50 +00:00
MDBuilder.cpp Add function importing info from samplepgo profile to the module summary. 2017-02-28 18:09:44 +00:00
Metadata.cpp Fix the InstCombine to reserve the VP metadata and sets correct call count. 2017-03-31 15:59:52 +00:00
MetadataImpl.h
Module.cpp Turn some C-style vararg into variadic templates 2017-04-11 08:36:52 +00:00
ModuleSummaryIndex.cpp
Operator.cpp [IR] Remove some unneeded includes from Operator.h and fix cpp files that were transitively depending on it. NFC 2017-03-20 05:08:41 +00:00
OptBisect.cpp Remove opt-bisect support for "cases" in favor of debug counters 2017-03-11 01:41:03 +00:00
Pass.cpp
PassManager.cpp
PassRegistry.cpp
ProfileSummary.cpp
Statepoint.cpp Rename AttributeSet to AttributeList 2017-03-21 16:57:19 +00:00
SymbolTableListTraitsImpl.h
Type.cpp [IR] Inline Type::getScalarType() by using isVectorTy() and getVectorElementType() that were already available inline. 2017-04-08 05:47:09 +00:00
TypeFinder.cpp
Use.cpp
User.cpp
Value.cpp [IR] Implement pairs of non-const and const methods using the const version instead of the non-const version. NFCI 2017-03-27 05:47:03 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp Allow DataLayout to specify addrspace for allocas. 2017-04-10 22:27:50 +00:00