#include "llvm/Support/LeakDetector.h"
#include "llvm/Support/StringPool.h"
#include "SymbolTableListTraitsImpl.h"
-#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringExtras.h"
using namespace llvm;
return FunctionType::get(ResultTy, ArgTys, IsVarArg);
}
-AttrListPtr Intrinsic::getAttributes(ID id) {
- Attributes Attr = Attribute::None;
-
+/// This defines the "Intrinsic::getAttributes(ID id)" method.
#define GET_INTRINSIC_ATTRIBUTES
#include "llvm/Intrinsics.gen"
#undef GET_INTRINSIC_ATTRIBUTES
- // Intrinsics cannot throw exceptions.
- Attr |= Attribute::NoUnwind;
-
- AttributeWithIndex PAWI = AttributeWithIndex::get(~0, Attr);
- return AttrListPtr::get(&PAWI, 1);
-}
-
Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys,
unsigned numTys) {
// There can never be multiple globals with the same name of different types,