forked from OSchip/llvm-project
parent
c6d5edd2ed
commit
e792c90fd1
|
@ -31,6 +31,7 @@ class ConstantArray;
|
|||
class ConstantFP;
|
||||
class ConstantVector;
|
||||
class UndefValue;
|
||||
class MDNode;
|
||||
class IntegerType;
|
||||
class PointerType;
|
||||
class StructType;
|
||||
|
@ -176,6 +177,9 @@ public:
|
|||
Constant* getConstantVector(Constant* const* Vals, unsigned NumVals);
|
||||
ConstantVector* getConstantVectorAllOnes(const VectorType* Ty);
|
||||
|
||||
// MDNode accessors
|
||||
MDNode* getMDNode(Value* const* Vals, unsigned NumVals);
|
||||
|
||||
// FunctionType accessors
|
||||
FunctionType* getFunctionType(const Type* Result,
|
||||
const std::vector<const Type*>& Params,
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "llvm/LLVMContext.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/MDNode.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "LLVMContextImpl.h"
|
||||
|
||||
|
@ -405,6 +406,11 @@ ConstantVector* LLVMContext::getConstantVectorAllOnes(const VectorType* Ty) {
|
|||
return ConstantVector::getAllOnesValue(Ty);
|
||||
}
|
||||
|
||||
// MDNode accessors
|
||||
MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) {
|
||||
return MDNode::get(Vals, NumVals);
|
||||
}
|
||||
|
||||
// FunctionType accessors
|
||||
FunctionType* LLVMContext::getFunctionType(const Type* Result,
|
||||
const std::vector<const Type*>& Params,
|
||||
|
|
Loading…
Reference in New Issue