You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improvements to documentation
* Improved style a bit more
* Merged OptimizationLevel and CodeGenOptLevel, among other things
* Option<OptimizationLevel> -> OptimizationLevel with Default
Copy file name to clipboardexpand all lines: src/passes.rs
+4-8
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@ use llvm_sys::transforms::pass_manager_builder::{LLVMPassManagerBuilderRef, LLVM
7
7
use llvm_sys::transforms::scalar::{LLVMAddAggressiveDCEPass,LLVMAddMemCpyOptPass,LLVMAddBitTrackingDCEPass,LLVMAddAlignmentFromAssumptionsPass,LLVMAddCFGSimplificationPass,LLVMAddDeadStoreEliminationPass,LLVMAddScalarizerPass,LLVMAddMergedLoadStoreMotionPass,LLVMAddGVNPass,LLVMAddIndVarSimplifyPass,LLVMAddInstructionCombiningPass,LLVMAddJumpThreadingPass,LLVMAddLICMPass,LLVMAddLoopDeletionPass,LLVMAddLoopIdiomPass,LLVMAddLoopRotatePass,LLVMAddLoopRerollPass,LLVMAddLoopUnrollPass,LLVMAddLoopUnswitchPass,LLVMAddPartiallyInlineLibCallsPass,LLVMAddLowerSwitchPass,LLVMAddPromoteMemoryToRegisterPass,LLVMAddSCCPPass,LLVMAddScalarReplAggregatesPass,LLVMAddScalarReplAggregatesPassSSA,LLVMAddScalarReplAggregatesPassWithThreshold,LLVMAddSimplifyLibCallsPass,LLVMAddTailCallEliminationPass,LLVMAddConstantPropagationPass,LLVMAddDemoteMemoryToRegisterPass,LLVMAddVerifierPass,LLVMAddCorrelatedValuePropagationPass,LLVMAddEarlyCSEPass,LLVMAddLowerExpectIntrinsicPass,LLVMAddTypeBasedAliasAnalysisPass,LLVMAddScopedNoAliasAAPass,LLVMAddBasicAliasAnalysisPass,LLVMAddReassociatePass};
8
8
use llvm_sys::transforms::vectorize::{LLVMAddBBVectorizePass,LLVMAddLoopVectorizePass,LLVMAddSLPVectorizePass};
9
9
10
+
useOptimizationLevel;
10
11
use module::Module;
11
-
use targets::{CodeGenOptLevel,TargetData};
12
+
use targets::TargetData;
12
13
use values::{AsValueRef,FunctionValue};
13
14
14
15
// REVIEW: Opt Level might be identical to targets::Option<CodeGenOptLevel>
Copy file name to clipboardexpand all lines: src/targets.rs
+6-22
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ use llvm_sys::core::LLVMDisposeMessage;
2
2
use llvm_sys::target::{LLVMTargetDataRef,LLVMCopyStringRepOfTargetData,LLVMSizeOfTypeInBits,LLVMCreateTargetData,LLVMAddTargetData,LLVMByteOrder,LLVMPointerSize,LLVMByteOrdering,LLVMStoreSizeOfType,LLVMABISizeOfType,LLVMABIAlignmentOfType,LLVMCallFrameAlignmentOfType,LLVMPreferredAlignmentOfType,LLVMPreferredAlignmentOfGlobal,LLVMElementAtOffset,LLVMOffsetOfElement,LLVMDisposeTargetData,LLVMPointerSizeForAS,LLVMIntPtrType,LLVMIntPtrTypeForAS,LLVMIntPtrTypeInContext,LLVMIntPtrTypeForASInContext};
3
3
use llvm_sys::target_machine::{LLVMGetFirstTarget,LLVMTargetRef,LLVMGetNextTarget,LLVMGetTargetFromName,LLVMGetTargetFromTriple,LLVMGetTargetName,LLVMGetTargetDescription,LLVMTargetHasJIT,LLVMTargetHasTargetMachine,LLVMTargetHasAsmBackend,LLVMTargetMachineRef,LLVMDisposeTargetMachine,LLVMGetTargetMachineTarget,LLVMGetTargetMachineTriple,LLVMSetTargetMachineAsmVerbosity,LLVMCreateTargetMachine,LLVMGetTargetMachineCPU,LLVMGetTargetMachineFeatureString,LLVMGetDefaultTargetTriple,LLVMAddAnalysisPasses,LLVMCodeGenOptLevel,LLVMCodeModel,LLVMRelocMode};
0 commit comments