llvm-6502/lib/IR
Benjamin Kramer e749325463 [CallSite] Make construction from Value* (or Instruction*) explicit.
CallSite roughly behaves as a common base CallInst and InvokeInst. Bring
the behavior closer to that model by making upcasts explicit. Downcasts
remain implicit and work as before.

Following dyn_cast as a mental model checking whether a Value *V isa
CallSite now looks like this: 
  if (auto CS = CallSite(V)) // think dyn_cast
instead of:
  if (CallSite CS = V)

This is an extra token but I think it is slightly clearer. Making the
ctor explicit has the advantage of not accidentally creating nullptr
CallSites, e.g. when you pass a Value * to a function taking a CallSite
argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234601 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-10 14:50:08 +00:00
..
AsmWriter.cpp DebugInfo: Move DIFlag-related API from DIDescriptor to DebugNode 2015-04-07 01:21:40 +00:00
AttributeImpl.h
Attributes.cpp Remove more superfluous .str() and replace std::string concatenation with Twine. 2015-03-30 15:42:36 +00:00
AutoUpgrade.cpp AutoUpgrade: Remove obsolete dbg.declare/value upgrade 2015-04-06 17:17:47 +00:00
BasicBlock.cpp Return iterator from BasicBlock::eraseFromParent 2015-04-03 01:20:33 +00:00
CMakeLists.txt
Comdat.cpp
ConstantFold.cpp [opaque pointer type] API migration for GEP constant factories 2015-04-02 18:55:32 +00:00
ConstantFold.h
ConstantRange.cpp [ConstantRange] Split makeICmpRegion in two. 2015-03-18 00:41:24 +00:00
Constants.cpp [opaque pointer type] API migration for GEP constant factories 2015-04-02 18:55:32 +00:00
ConstantsContext.h
Core.cpp [opaque pointer type] The last of the GEP IRBuilder API migrations 2015-04-05 22:41:44 +00:00
DataLayout.cpp COFF: Let globals with private linkage reside in their own section 2015-03-17 23:54:51 +00:00
DebugInfo.cpp DebugInfo: Remove constructors for DIRef<> 2015-04-07 18:41:54 +00:00
DebugInfoMetadata.cpp DebugInfo: Move DIExpression bit-piece API to MDExpression 2015-04-07 03:49:59 +00:00
DebugLoc.cpp IR: Stop using DIDescriptor::is*() and auto-casting 2015-04-06 23:18:49 +00:00
DiagnosticInfo.cpp IR: Use the new DebugLoc API, NFC 2015-03-30 19:40:05 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp Revert "Workaround bot failure with explicit conversion to MDTuple*" 2015-04-07 17:30:52 +00:00
Dominators.cpp
Function.cpp [opaque pointer type] Avoid using PointerType::getElementType when parsing IR 2015-04-06 20:59:48 +00:00
GCOV.cpp Remove more superfluous .str() and replace std::string concatenation with Twine. 2015-03-30 15:42:36 +00:00
Globals.cpp Remove getDataLayout() from Instruction/GlobalValue/BasicBlock/Function 2015-03-03 22:01:13 +00:00
GVMaterializer.cpp
InlineAsm.cpp Silence sign compare warning. NFC. 2015-03-29 20:49:03 +00:00
Instruction.cpp Return iterator from Instruction::eraseFromParent. 2015-04-02 00:03:07 +00:00
Instructions.cpp [opaque pointer type] Avoid using PointerType::getElementType when parsing IR 2015-04-06 20:59:48 +00:00
IntrinsicInst.cpp
IRBuilder.cpp [opaque pointer type] More GEP IRBuilder API migrations... 2015-04-03 21:33:42 +00:00
IRPrintingPasses.cpp
LegacyPassManager.cpp Typo. 2015-03-20 15:45:14 +00:00
LLVMBuild.txt
LLVMContext.cpp
LLVMContextImpl.cpp
LLVMContextImpl.h IR: Rename MDSubrange::getLo() to getLowerBound() 2015-04-07 00:39:59 +00:00
Makefile
Mangler.cpp Revert "Address review comments" 2015-03-17 20:40:21 +00:00
MDBuilder.cpp
Metadata.cpp IR: Enable uniquing callbacks during MDNode::replaceWithUniqued() 2015-03-31 20:50:50 +00:00
MetadataImpl.h
MetadataTracking.cpp
Module.cpp Be lazy about loading metadata in IRObjectFile. 2015-03-13 21:54:20 +00:00
module.modulemap
Pass.cpp
PassManager.cpp
PassRegistry.cpp Revert r231276 (including r231277): Add a lock() function in PassRegistry to speed up multi-thread synchronization. 2015-03-05 17:53:00 +00:00
Statepoint.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp Fix Value dangling reference debug output 2015-03-10 23:55:38 +00:00
Use.cpp
UseListOrder.cpp IR: Preserve use-list order by default in bitcode 2015-04-09 17:41:20 +00:00
User.cpp
Value.cpp [CallSite] Make construction from Value* (or Instruction*) explicit. 2015-04-10 14:50:08 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp IR: Remove MDTupleTypedArrayWrapper::operator MDTuple*() 2015-04-07 16:50:39 +00:00